Code

prevent the race between ungrab and selModify to fix the disappearing handles problem...
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 3 Aug 2006 05:49:17 +0000 (05:49 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 3 Aug 2006 05:49:17 +0000 (05:49 +0000)
src/seltrans.cpp

index 9a648e2efa752649aaba270db9741ccc4ed67a0d..675cb672eb49b30fd9dece44266d4add71005c4d 100644 (file)
@@ -321,6 +321,8 @@ void Inkscape::SelTrans::transform(NR::Matrix const &rel_affine, NR::Point const
 void Inkscape::SelTrans::ungrab()
 {
     g_return_if_fail(_grabbed);
+    _grabbed = false;
+    _show_handles = true;
 
     Inkscape::Selection *selection = sp_desktop_selection(_desktop);
     bool updh = true;
@@ -365,9 +367,6 @@ void Inkscape::SelTrans::ungrab()
     _items.clear();
     _items_centers.clear();
 
-    _grabbed = false;
-    _show_handles = true;
-
     sp_canvas_item_hide(_norm);
     sp_canvas_item_hide(_grip);