summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-01-28 19:25:14 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-01-28 19:25:14 +0000
commitd19e24cd4ba022caef1ca7c05286ee6b59d8328a (patch)
tree05b79c989a0b86ef751acaa2b60967515ece6fbc /src/ui
parentSpecify Vim fold method for inkscape.nsi (diff)
downloadinkscape-d19e24cd4ba022caef1ca7c05286ee6b59d8328a.tar.gz
inkscape-d19e24cd4ba022caef1ca7c05286ee6b59d8328a.zip
Fix some actions failing when show handles is off.
(bzr r9027)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/tool/path-manipulator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index 4b42c16b0..2d4df86f3 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -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 */