diff options
| author | Uli Schlachter <psychon@znc.in> | 2017-06-26 07:10:12 +0000 |
|---|---|---|
| committer | Uli Schlachter <psychon@znc.in> | 2017-06-26 07:10:12 +0000 |
| commit | 8825db4e6132bada6cd86b93e6591aa3a53e86b7 (patch) | |
| tree | 5767aa19571cbe7dc80627dc162617bd2b190131 /src/ui/tools/select-tool.cpp | |
| parent | Merge branch 'ui-files-for-ui-xml' (diff) | |
| download | inkscape-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.cpp | 4 |
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); |
