From b8d2a2d3b528d90cd88f96fd4a32b077c98776d5 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 17 Jul 2008 22:00:40 +0000 Subject: convert all SPCurve's points and matrices arguments and return types to 2Geom (bzr r6339) --- src/nodepath.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/nodepath.cpp') diff --git a/src/nodepath.cpp b/src/nodepath.cpp index e4b080f4f..d7ca69112 100644 --- a/src/nodepath.cpp +++ b/src/nodepath.cpp @@ -158,7 +158,7 @@ static void sp_nodepath_draw_helper_curve(Inkscape::NodePath::Path *np, SPDeskto // Draw helper curve if (np->show_helperpath) { SPCurve *helper_curve = np->curve->copy(); - helper_curve->transform(np->i2d ); + helper_curve->transform(to_2geom(np->i2d)); np->helper_path = sp_canvas_bpath_new(sp_desktop_controls(desktop), helper_curve); sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(np->helper_path), np->helperpath_rgba, np->helperpath_width, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT); sp_canvas_bpath_set_fill(SP_CANVAS_BPATH(np->helper_path), 0, SP_WIND_RULE_NONZERO); @@ -573,7 +573,7 @@ static void update_object(Inkscape::NodePath::Path *np) if (np->show_helperpath) { SPCurve * helper_curve = np->curve->copy(); - helper_curve->transform(np->i2d ); + helper_curve->transform(to_2geom(np->i2d)); sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(np->helper_path), helper_curve); helper_curve->unref(); } @@ -614,7 +614,7 @@ static void update_repr_internal(Inkscape::NodePath::Path *np) if (np->show_helperpath) { SPCurve * helper_curve = np->curve->copy(); - helper_curve->transform(np->i2d ); + helper_curve->transform(to_2geom(np->i2d)); sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(np->helper_path), helper_curve); helper_curve->unref(); } @@ -4798,7 +4798,7 @@ void sp_nodepath_show_helperpath(Inkscape::NodePath::Path *np, bool show) { if (show) { SPCurve *helper_curve = np->curve->copy(); - helper_curve->transform(np->i2d ); + helper_curve->transform(to_2geom(np->i2d)); if (!np->helper_path) { np->helper_path = sp_canvas_bpath_new(sp_desktop_controls(np->desktop), helper_curve); sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(np->helper_path), np->helperpath_rgba, np->helperpath_width, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT); -- cgit v1.2.3