Code

remove many unnecessary to_2geom and from_2geom calls
[inkscape.git] / src / sp-image.cpp
index 2dc3bfb278a02c0f8009f5711239dd305cd9de3b..5a02517e260267d27800ca44e2de314c7fbde740 100644 (file)
@@ -1306,6 +1306,7 @@ static void sp_image_snappoints(SPItem const *item, SnapPointsIter p)
     if (item->clip_ref->getObject()) {
         //We are looking at a clipped image: do not return any snappoints, as these might be
         //far far away from the visible part from the clipped image
+       //TODO Do return snappoints, but only when within visual bounding box
     } else {
         // The image has not been clipped: return its corners, which might be rotated for example
         SPImage &image = *SP_IMAGE(item);
@@ -1313,7 +1314,7 @@ static void sp_image_snappoints(SPItem const *item, SnapPointsIter p)
                double const y0 = image.y.computed;
                double const x1 = x0 + image.width.computed;
                double const y1 = y0 + image.height.computed;
-               NR::Matrix const i2d (from_2geom(sp_item_i2d_affine (item)));
+               NR::Matrix const i2d (sp_item_i2d_affine (item));
                *p = NR::Point(x0, y0) * i2d;
         *p = NR::Point(x0, y1) * i2d;
         *p = NR::Point(x1, y1) * i2d;