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-line.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-line.cpp')
| -rw-r--r-- | src/sp-line.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-line.cpp b/src/sp-line.cpp index 9be7cf928..5fed6a62e 100644 --- a/src/sp-line.cpp +++ b/src/sp-line.cpp @@ -218,12 +218,12 @@ sp_line_set_shape (SPShape *shape) { SPLine *line = SP_LINE (shape); - SPCurve *c = sp_curve_new (); + SPCurve *c = new SPCurve (); - sp_curve_moveto (c, line->x1.computed, line->y1.computed); - sp_curve_lineto (c, line->x2.computed, line->y2.computed); + c->moveto(line->x1.computed, line->y1.computed); + c->lineto(line->x2.computed, line->y2.computed); sp_shape_set_curve_insync (shape, c, TRUE); // *_insync does not call update, avoiding infinite recursion when set_shape is called by update - sp_curve_unref (c); + c->unref(); } |
