Code

remove many unnecessary to_2geom and from_2geom calls
[inkscape.git] / src / live_effects / lpe-mirror_symmetry.cpp
index 834877f369a803a172d865931bed5f067c14fb6a..bb2b908deeb4fab3a9ef74b5e346b651a079c242 100644 (file)
@@ -47,7 +47,7 @@ LPEMirrorSymmetry::doOnApply (SPLPEItem *lpeitem)
 
     SPItem *item = SP_ITEM(lpeitem);
     Geom::Matrix t = sp_item_i2d_affine(item);
-    Geom::Rect bbox = item->getBounds(t);
+    Geom::Rect bbox = to_2geom(*item->getBounds(t)); // fixme: what happens if getBounds does not return a valid rect?
 
     Point A(bbox.left(), bbox.bottom());
     Point B(bbox.left(), bbox.top());