summaryrefslogtreecommitdiffstats
path: root/src/sp-path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-path.cpp')
-rw-r--r--src/sp-path.cpp14
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++