summaryrefslogtreecommitdiffstats
path: root/src/sp-path.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-08-08 17:32:43 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-08-08 17:32:43 +0000
commit43dc21b53e642208542398d7d257d0f9cb48582f (patch)
tree75510653a1989316dad1df9b3d9bc9230264281c /src/sp-path.cpp
parentFixed svg-path (and display/curve) tests to properly handle closepath and mad... (diff)
downloadinkscape-43dc21b53e642208542398d7d257d0f9cb48582f.tar.gz
inkscape-43dc21b53e642208542398d7d257d0f9cb48582f.zip
remove many unnecessary to_2geom and from_2geom calls
(bzr r6593)
Diffstat (limited to 'src/sp-path.cpp')
-rw-r--r--src/sp-path.cpp7
1 files changed, 3 insertions, 4 deletions
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) {