Code

Clear pointers in the snapmanager if they're no longer needed.
[inkscape.git] / src / context-fns.cpp
index b22cd488d79a6a86d20748f1459b511954b9c335..6da1813ca9b2806334e9e4a423f8faf98cdf9bd9 100644 (file)
@@ -209,6 +209,8 @@ Geom::Rect Inkscape::snap_rectangular_box(SPDesktop const *desktop, SPItem *item
     p[0] *= desktop->dt2doc();
     p[1] *= desktop->dt2doc();
 
+    m.unSetup();
+
     return Geom::Rect(Geom::Point(MIN(p[0][Geom::X], p[1][Geom::X]), MIN(p[0][Geom::Y], p[1][Geom::Y])),
                     Geom::Point(MAX(p[0][Geom::X], p[1][Geom::X]), MAX(p[0][Geom::Y], p[1][Geom::Y])));
 }