summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-10-08 05:22:10 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-10-08 05:22:10 +0000
commite10b71aa8519325b5d68d3b51160935aa5498ab4 (patch)
treed2cfb19f73b157dfe1e6d1ddeb2d204894a2a74a /src/verbs.cpp
parentFilter effects dialog: (diff)
downloadinkscape-e10b71aa8519325b5d68d3b51160935aa5498ab4.tar.gz
inkscape-e10b71aa8519325b5d68d3b51160935aa5498ab4.zip
tab handles in gradient tool only when they exist
(bzr r3861)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 711f24879..e49263ede 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -80,6 +80,7 @@
#include "gradient-context.h"
#include "shape-editor.h"
#include "draw-context.h"
+#include "gradient-drag.h"
/**
@@ -970,7 +971,8 @@ EditVerb::perform(SPAction *action, void *data, void *pdata)
case SP_VERB_EDIT_SELECT_NEXT:
if (tools_isactive(dt, TOOLS_NODES)) {
SP_NODE_CONTEXT(ec)->shape_editor->select_next();
- } else if (tools_isactive(dt, TOOLS_GRADIENT)) {
+ } else if (tools_isactive(dt, TOOLS_GRADIENT)
+ && ec->_grdrag->isNonEmpty()) {
sp_gradient_context_select_next (ec);
} else {
sp_selection_item_next();
@@ -979,7 +981,8 @@ EditVerb::perform(SPAction *action, void *data, void *pdata)
case SP_VERB_EDIT_SELECT_PREV:
if (tools_isactive(dt, TOOLS_NODES)) {
SP_NODE_CONTEXT(ec)->shape_editor->select_prev();
- } else if (tools_isactive(dt, TOOLS_GRADIENT)) {
+ } else if (tools_isactive(dt, TOOLS_GRADIENT)
+ && ec->_grdrag->isNonEmpty()) {
sp_gradient_context_select_prev (ec);
} else {
sp_selection_item_prev();