summaryrefslogtreecommitdiffstats
path: root/src/ui/tools
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-03-07 19:34:38 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-03-07 19:34:38 +0000
commit0a0947876040165625941a4bccc1a788173121c0 (patch)
tree425833ff7b29724ec2d6c01fa5c70c5d13380530 /src/ui/tools
parentbtool: Fix multiply included test file header (diff)
downloadinkscape-0a0947876040165625941a4bccc1a788173121c0.tar.gz
inkscape-0a0947876040165625941a4bccc1a788173121c0.zip
does not zoom in to selection box if holding shift to zoom out
(bzr r14692)
Diffstat (limited to 'src/ui/tools')
-rw-r--r--src/ui/tools/zoom-tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/zoom-tool.cpp b/src/ui/tools/zoom-tool.cpp
index 6a4d4dbbd..13e097c18 100644
--- a/src/ui/tools/zoom-tool.cpp
+++ b/src/ui/tools/zoom-tool.cpp
@@ -142,7 +142,7 @@ bool ZoomTool::root_handler(GdkEvent* event) {
if ( event->button.button == 1 && !this->space_panning) {
Geom::OptRect const b = Inkscape::Rubberband::get(desktop)->getRectangle();
- if (b && !within_tolerance) {
+ if (b && !within_tolerance && !(GDK_SHIFT_MASK & event->button.state) ) {
desktop->set_display_area(*b, 10);
} else if (!escaped) {
double const zoom_rel( (event->button.state & GDK_SHIFT_MASK)