summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7391f37)
raw | patch | inline | side by side (parent: 7391f37)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 8 Oct 2007 05:22:10 +0000 (05:22 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 8 Oct 2007 05:22:10 +0000 (05:22 +0000) |
src/verbs.cpp | patch | blob | history |
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 711f24879ec64a0d27cedd54db3500cf81034b2c..e49263ede6a7dc73be3d59ca0aa4847ef4517c5f 100644 (file)
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
#include "gradient-context.h"
#include "shape-editor.h"
#include "draw-context.h"
+#include "gradient-drag.h"
/**
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();
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();