summaryrefslogtreecommitdiffstats
path: root/src/gradient-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradient-context.cpp')
-rw-r--r--src/gradient-context.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp
index 9d86619db..e10e42610 100644
--- a/src/gradient-context.cpp
+++ b/src/gradient-context.cpp
@@ -493,12 +493,14 @@ sp_gradient_context_add_stop_near_point (SPGradientContext *rc, SPItem *item, G
double tolerance = (double) ec->tolerance;
- ec->get_drag()->addStopNearPoint (item, mouse_p, tolerance/desktop->current_zoom());
+ SPStop *newstop = ec->get_drag()->addStopNearPoint (item, mouse_p, tolerance/desktop->current_zoom());
DocumentUndo::done(sp_desktop_document (desktop), SP_VERB_CONTEXT_GRADIENT,
_("Add gradient stop"));
ec->get_drag()->updateDraggers();
+ ec->get_drag()->local_change = true;
+ ec->get_drag()->selectByStop(newstop);
}