summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/select-tool.cpp
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2017-06-26 07:10:12 +0000
committerUli Schlachter <psychon@znc.in>2017-06-26 07:10:12 +0000
commit8825db4e6132bada6cd86b93e6591aa3a53e86b7 (patch)
tree5767aa19571cbe7dc80627dc162617bd2b190131 /src/ui/tools/select-tool.cpp
parentMerge branch 'ui-files-for-ui-xml' (diff)
downloadinkscape-8825db4e6132bada6cd86b93e6591aa3a53e86b7.tar.gz
inkscape-8825db4e6132bada6cd86b93e6591aa3a53e86b7.zip
select-tool: Only stop the rubberband when it was started
Rubberband::stop() calls SPCanvas::endForcedFullRedraws(), which means possible no full redraw will happen while moving. Fixes: https://bugs.launchpad.net/inkscape/+bug/1510704 Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/ui/tools/select-tool.cpp')
-rw-r--r--src/ui/tools/select-tool.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/tools/select-tool.cpp b/src/ui/tools/select-tool.cpp
index bae1793ed..927b8a3d4 100644
--- a/src/ui/tools/select-tool.cpp
+++ b/src/ui/tools/select-tool.cpp
@@ -566,7 +566,9 @@ bool SelectTool::root_handler(GdkEvent* event) {
/* User has dragged fast, so we get events on root (lauris)*/
// not only that; we will end up here when ctrl-dragging as well
// and also when we started within tolerance, but trespassed tolerance outside of item
- Inkscape::Rubberband::get(desktop)->stop();
+ if (Inkscape::Rubberband::get(desktop)->is_started()) {
+ Inkscape::Rubberband::get(desktop)->stop();
+ }
this->defaultMessageContext()->clear();
item_at_point = desktop->getItemAtPoint(Geom::Point(event->button.x, event->button.y), FALSE);