diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-01-02 14:42:39 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-01-02 14:42:39 +0000 |
| commit | 55e228f842373d4ec4dd1c8ecffb4aa55cb73575 (patch) | |
| tree | fe6d7a6f87817409d8a8b66e8ae50be6f92236a0 /src/sp-path.cpp | |
| parent | update to latest 2geom (diff) | |
| download | inkscape-55e228f842373d4ec4dd1c8ecffb4aa55cb73575.tar.gz inkscape-55e228f842373d4ec4dd1c8ecffb4aa55cb73575.zip | |
Fix LP bug #179328
(bzr r4365)
Diffstat (limited to 'src/sp-path.cpp')
| -rw-r--r-- | src/sp-path.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sp-path.cpp b/src/sp-path.cpp index 8aed67590..b9e94d72e 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -452,6 +452,20 @@ sp_path_get_curve_for_edit (SPPath *path) } } +/** + * Return a reference to original_curve if it exists or + * shape->curve if not. + */ +const SPCurve* +sp_path_get_curve_reference (SPPath *path) +{ + if (path->original_curve) { + return path->original_curve; + } else { + return path->curve; + } +} + /* Local Variables: mode:c++ |
