summaryrefslogtreecommitdiffstats
path: root/src/gradient-context.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-09-02 23:44:27 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-09-02 23:44:27 +0000
commitbd9e980c59453168a9d55a093564421b593e186e (patch)
tree6e577b37f7eb020878b2aa7a0cee482c685c4835 /src/gradient-context.cpp
parentconverted some c-string usage to c++ string class usage: should fix some memo... (diff)
downloadinkscape-bd9e980c59453168a9d55a093564421b593e186e.tar.gz
inkscape-bd9e980c59453168a9d55a093564421b593e186e.zip
Fix for 406044 : Esc with no selection, activates selection tool
(bzr r11647)
Diffstat (limited to 'src/gradient-context.cpp')
-rw-r--r--src/gradient-context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp
index cf7d6a26f..05bea14b9 100644
--- a/src/gradient-context.cpp
+++ b/src/gradient-context.cpp
@@ -47,6 +47,7 @@
#include "rubberband.h"
#include "document-undo.h"
#include "verbs.h"
+#include "selection-chemistry.h"
using Inkscape::DocumentUndo;
@@ -759,7 +760,7 @@ sp_gradient_context_root_handler(SPEventContext *event_context, GdkEvent *event)
if (drag->selected) {
drag->deselectAll();
} else {
- selection->clear();
+ Inkscape::SelectionHelper::selectNone(desktop);
}
ret = TRUE;
//TODO: make dragging escapable by Esc