diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-05-05 19:00:20 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-05-05 19:00:20 +0000 |
| commit | d955f60393f4f85b0269346f37b4481a1c70205a (patch) | |
| tree | 2dd9a11fe737c4a43c8aa88451acd3c8f766fff2 /src/sp-polyline.cpp | |
| parent | Cmake: Moved helper macros to their own file and removed *-test.h from inksca... (diff) | |
| download | inkscape-d955f60393f4f85b0269346f37b4481a1c70205a.tar.gz inkscape-d955f60393f4f85b0269346f37b4481a1c70205a.zip | |
struct SPCurve => class SPCurve
change all sp_curve_methods functions to SPCurve::methods.
(bzr r5609)
Diffstat (limited to 'src/sp-polyline.cpp')
| -rw-r--r-- | src/sp-polyline.cpp | 8 |
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: |
