summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosh Andler <scislac@gmail.com>2007-01-25 21:46:30 +0000
committerscislac <scislac@users.sourceforge.net>2007-01-25 21:46:30 +0000
commit098a1afa9536d31199e6a4c943fb8f5d5e11345a (patch)
tree87b5c92655ddd8fe18f1147a4324de7ebf73b953 /src
parentCreated SVG version. (diff)
downloadinkscape-098a1afa9536d31199e6a4c943fb8f5d5e11345a.tar.gz
inkscape-098a1afa9536d31199e6a4c943fb8f5d5e11345a.zip
double-click on offset changes to node tool
(bzr r2287)
Diffstat (limited to 'src')
-rw-r--r--src/tools-switch.cpp8
1 files 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@dr.com>
+ * bulia byak <buliabyak@users.sf.net>
+ * Josh Andler <scislac@users.sf.net>
*
- * 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);
}
}