summaryrefslogtreecommitdiffstats
path: root/src/sp-polyline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-polyline.cpp')
-rw-r--r--src/sp-polyline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-polyline.cpp b/src/sp-polyline.cpp
index d974f61e3..4a39afd1b 100644
--- a/src/sp-polyline.cpp
+++ b/src/sp-polyline.cpp
@@ -105,7 +105,7 @@ sp_polyline_set (SPObject *object, unsigned int key, const gchar *value)
gboolean hascpt;
if (!value) break;
- curve = sp_curve_new ();
+ curve = new SPCurve ();
hascpt = FALSE;
cptr = value;
@@ -132,15 +132,15 @@ sp_polyline_set (SPObject *object, unsigned int key, const gchar *value)
if (eptr == cptr) break;
cptr = eptr;
if (hascpt) {
- sp_curve_lineto (curve, x, y);
+ curve->lineto(x, y);
} else {
- sp_curve_moveto (curve, x, y);
+ curve->moveto(x, y);
hascpt = TRUE;
}
}
sp_shape_set_curve (SP_SHAPE (polyline), curve, TRUE);
- sp_curve_unref (curve);
+ curve->unref();
break;
}
default: