summaryrefslogtreecommitdiffstats
path: root/src/sp-rect.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-rect.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-rect.cpp')
-rw-r--r--src/sp-rect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp
index 08d30b4f4..b573300e0 100644
--- a/src/sp-rect.cpp
+++ b/src/sp-rect.cpp
@@ -560,7 +560,7 @@ static void sp_rect_snappoints(SPItem const *item, SnapPointsIter p)
SPRect *rect = SP_RECT(item);
- NR::Matrix const i2d (from_2geom(sp_item_i2d_affine (item)));
+ NR::Matrix const i2d (sp_item_i2d_affine (item));
*p = NR::Point(rect->x.computed, rect->y.computed) * i2d;
*p = NR::Point(rect->x.computed, rect->y.computed + rect->height.computed) * i2d;
@@ -579,7 +579,7 @@ sp_rect_convert_to_guides(SPItem *item) {
std::list<std::pair<Geom::Point, Geom::Point> > pts;
- NR::Matrix const i2d (from_2geom(sp_item_i2d_affine(SP_ITEM(rect))));
+ NR::Matrix const i2d (sp_item_i2d_affine(SP_ITEM(rect)));
NR::Point A1(NR::Point(rect->x.computed, rect->y.computed) * i2d);
NR::Point A2(NR::Point(rect->x.computed, rect->y.computed + rect->height.computed) * i2d);