summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-04-11 01:34:38 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-04-11 01:34:38 +0000
commitf586aedf401d920ba3ddf5e4e250b4c5a2755597 (patch)
treea9144f0f0d72993b88884637604b141395772139 /src
parentmore 2geom fix (diff)
downloadinkscape-f586aedf401d920ba3ddf5e4e250b4c5a2755597.tar.gz
inkscape-f586aedf401d920ba3ddf5e4e250b4c5a2755597.zip
Fix for 950677 : Disable gradient editor on knot double click
(bzr r11216)
Diffstat (limited to 'src')
-rw-r--r--src/gradient-drag.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 12ecd467c..ad66b258a 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1012,7 +1012,7 @@ static void gr_knot_clicked_handler(SPKnot */*knot*/, guint state, gpointer data
}
/**
- * Called when a dragger knot is doubleclicked; opens gradient editor with the stop from the first draggable.
+ * Called when a dragger knot is doubleclicked;
*/
static void gr_knot_doubleclicked_handler(SPKnot */*knot*/, guint /*state*/, gpointer data)
{
@@ -1023,8 +1023,11 @@ static void gr_knot_doubleclicked_handler(SPKnot */*knot*/, guint /*state*/, gpo
if (dragger->draggables == NULL)
return;
- GrDraggable *draggable = (GrDraggable *) dragger->draggables->data;
- sp_item_gradient_edit_stop (draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke);
+ /*
+ * 2012/4 - Do nothing (gradient editor to be disabled)
+ */
+ //GrDraggable *draggable = (GrDraggable *) dragger->draggables->data;
+ //sp_item_gradient_edit_stop (draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke);
}
/**