From 55e228f842373d4ec4dd1c8ecffb4aa55cb73575 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 2 Jan 2008 14:42:39 +0000 Subject: Fix LP bug #179328 (bzr r4365) --- src/sp-path.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/sp-path.cpp') 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++ -- cgit v1.2.3