Code

Fix some actions failing when show handles is off.
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Thu, 28 Jan 2010 19:25:14 +0000 (20:25 +0100)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Thu, 28 Jan 2010 19:25:14 +0000 (20:25 +0100)
src/ui/tool/path-manipulator.cpp

index 4b42c16b00f040a6bfb471dc521f704b0c1bad97..2d4df86f36ad25ea71854dd671b5abe380853356 100644 (file)
@@ -1245,6 +1245,9 @@ bool PathManipulator::_handleClicked(Handle *h, GdkEventButton *event)
 
 void PathManipulator::_selectionChanged(SelectableControlPoint *p, bool selected)
 {
+    if (selected) ++_num_selected;
+    else --_num_selected;
+
     // don't do anything if we do not show handles
     if (!_show_handles) return;
 
@@ -1279,9 +1282,6 @@ void PathManipulator::_selectionChanged(SelectableControlPoint *p, bool selected
             }
         }
     }
-
-    if (selected) ++_num_selected;
-    else --_num_selected;
 }
 
 /** Removes all nodes belonging to this manipulator from the control pont selection */