summaryrefslogtreecommitdiffstats
path: root/src/gradient-context.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-04-01 06:57:50 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-04-01 06:57:50 +0000
commit9565dc07bd304c27590f28817d903be4344a77af (patch)
tree13c5f12fc03bed79f97b80fbbe9891be8c467b66 /src/gradient-context.cpp
parentFix for 179830 : gradient tool focus problems with overlapping objects (diff)
downloadinkscape-9565dc07bd304c27590f28817d903be4344a77af.tar.gz
inkscape-9565dc07bd304c27590f28817d903be4344a77af.zip
Fix for 627728 : newly-added gradient node by dbl click set active
(bzr r11137)
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);
}