From 49de36d0e55a6f5d0c89c00864641df22362049e Mon Sep 17 00:00:00 2001 From: scislac Date: Thu, 25 Jan 2007 21:46:30 +0000 Subject: [PATCH] double-click on offset changes to node tool --- src/tools-switch.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tools-switch.cpp b/src/tools-switch.cpp index d42354e8d..017aed979 100644 --- a/src/tools-switch.cpp +++ b/src/tools-switch.cpp @@ -2,9 +2,10 @@ * Utility functions for switching tools (= contexts) * * Authors: - * bulia byak + * bulia byak + * Josh Andler * - * Copyright (C) 2003 authors + * Copyright (C) 2003-2007 authors * * Released under GNU GPL, read the file 'COPYING' for more information */ @@ -42,6 +43,7 @@ #include "zoom-context.h" #include "dropper-context.h" #include "connector-context.h" +#include "sp-offset.h" #include "message-context.h" #include "tools-switch.h" @@ -233,6 +235,8 @@ void tools_switch_by_item(SPDesktop *dt, SPItem *item) } } else if (SP_IS_TEXT(item) || SP_IS_FLOWTEXT(item)) { tools_switch(dt, TOOLS_TEXT); + } else if (SP_IS_OFFSET(item)) { + tools_switch(dt, TOOLS_NODES); } } -- 2.30.2