From bd9e980c59453168a9d55a093564421b593e186e Mon Sep 17 00:00:00 2001 From: John Smith Date: Mon, 3 Sep 2012 08:44:27 +0900 Subject: Fix for 406044 : Esc with no selection, activates selection tool (bzr r11647) --- src/gradient-context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gradient-context.cpp') 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 -- cgit v1.2.3