From: buliabyak Date: Wed, 27 Sep 2006 23:48:24 +0000 (+0000) Subject: fix bug in my previous commit: updating rotation centers was broken X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=676aeb219eed96f8aecaae0fa83238d899b286c9;p=inkscape.git fix bug in my previous commit: updating rotation centers was broken --- diff --git a/src/seltrans.cpp b/src/seltrans.cpp index b9c8d8bf0..963c31d5b 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -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) */