Code

fix bug in my previous commit: updating rotation centers was broken
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 27 Sep 2006 23:48:24 +0000 (23:48 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 27 Sep 2006 23:48:24 +0000 (23:48 +0000)
src/seltrans.cpp

index b9c8d8bf035052fa06a0924e9508ae7bc1e0fe31..963c31d5b39229bbe32fb9ba3f2bc7586bfd682b 100644 (file)
@@ -332,8 +332,6 @@ void Inkscape::SelTrans::ungrab()
     for (unsigned i = 0; i < _items.size(); i++) {
         sp_object_unref(SP_OBJECT(_items[i].first), NULL);
     }
-    _items.clear();
-    _items_centers.clear();
 
     sp_canvas_item_hide(_norm);
     sp_canvas_item_hide(_grip);
@@ -389,6 +387,9 @@ void Inkscape::SelTrans::ungrab()
     if (updh) {
         _updateHandles();
     }
+
+    _items.clear();
+    _items_centers.clear();
 }
 
 /* fixme: This is really bad, as we compare positions for each stamp (Lauris) */