From 43dc21b53e642208542398d7d257d0f9cb48582f Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 8 Aug 2008 17:32:43 +0000 Subject: remove many unnecessary to_2geom and from_2geom calls (bzr r6593) --- src/sp-path.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/sp-path.cpp') diff --git a/src/sp-path.cpp b/src/sp-path.cpp index e0e10b6de..427a7d6cf 100644 --- a/src/sp-path.cpp +++ b/src/sp-path.cpp @@ -360,10 +360,9 @@ sp_path_set_transform(SPItem *item, NR::Matrix const &xform) // Transform the original-d path or the (ordinary) path if (path->original_curve) { - path->original_curve->transform(to_2geom(xform)); - sp_lpe_item_update_patheffect(path, true, true); + path->original_curve->transform(xform); } else { - shape->curve->transform(to_2geom(xform)); + shape->curve->transform(xform); } // Adjust stroke @@ -511,7 +510,7 @@ void freehand_create_single_dot(SPEventContext *ec, NR::Point const &pt, char co /* put the circle where the mouse click occurred and set the diameter to the current stroke width, multiplied by the amount specified in the preferences */ - NR::Matrix const i2d (from_2geom(sp_item_i2d_affine (item))); + NR::Matrix const i2d (sp_item_i2d_affine (item)); NR::Point pp = pt * i2d; double rad = 0.5 * prefs_get_double_attribute(tool, "dot-size", 3.0); if (event_state & GDK_MOD1_MASK) { -- cgit v1.2.3