From cf7bcd2af286d205a70eb9d1ec5e4b77fb6d2f19 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 17 Jan 2012 21:25:50 +0100 Subject: turn SPPath into a class, and add some methods... (bzr r10897) --- src/sp-shape.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/sp-shape.cpp') diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index 5fd33bef7..b946e52ce 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -1065,7 +1065,7 @@ SPShape::setCurveBeforeLPE (SPCurve *curve) /** * Return duplicate of curve (if any exists) or NULL if there is no curve */ -SPCurve * SPShape::getCurve() +SPCurve * SPShape::getCurve() const { if (this->curve) { return this->curve->copy(); @@ -1076,8 +1076,7 @@ SPCurve * SPShape::getCurve() /** * Return duplicate of curve *before* LPE (if any exists) or NULL if there is no curve */ -SPCurve * -SPShape::getCurveBeforeLPE() +SPCurve * SPShape::getCurveBeforeLPE() const { if (sp_lpe_item_has_path_effect(SP_LPE_ITEM(this))) { if (this->curve_before_lpe) { -- cgit v1.2.3