summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-toolbar.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-09-07 08:06:55 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-09-07 08:06:55 +0000
commit0930fd55d812b634da69eba0fe92b4094c554fa0 (patch)
treecd256b99a5eb15014727af17923099ce9d4d463a /src/widgets/gradient-toolbar.cpp
parentFix for 580160 : Deleting a gradient stop using Shape tools deletes the object (diff)
downloadinkscape-0930fd55d812b634da69eba0fe92b4094c554fa0.tar.gz
inkscape-0930fd55d812b634da69eba0fe92b4094c554fa0.zip
Fix for 1046868 : Gradient tool (trunk): stop selector cannot access stroke gradient stops of objects with two gradients
(bzr r11656)
Diffstat (limited to 'src/widgets/gradient-toolbar.cpp')
-rw-r--r--src/widgets/gradient-toolbar.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/widgets/gradient-toolbar.cpp b/src/widgets/gradient-toolbar.cpp
index 295f211b0..ae85ed515 100644
--- a/src/widgets/gradient-toolbar.cpp
+++ b/src/widgets/gradient-toolbar.cpp
@@ -671,22 +671,8 @@ static void select_drag_by_stop( GtkWidget *data, SPGradient *gradient, SPEventC
SPStop *stop = get_selected_stop(data);
-
- SPStop *stop_iter;
- GList *i;
-
- // Walk thru the draggers and the gradient stops at the same time
- for (i = drag->draggers, stop_iter = gradient->getFirstStop();
- i != NULL && stop_iter && SP_IS_STOP(stop_iter);
- i = i->next, stop_iter = SP_STOP(stop_iter->getNext())) {
-
- if (stop == stop_iter) {
- GrDragger *d = (GrDragger *) i->data;
- drag->setSelected(d, false, true);
- blocked = FALSE;
- return;
- }
- }
+ drag->selectByStop(stop, false, true);
+ blocked = FALSE;
}
static void select_stop_by_drag(GtkWidget *combo_box, SPGradient *gradient, SPEventContext *ev, GtkWidget *data)