summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-03-25 23:04:23 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-03-25 23:04:23 +0000
commit3e032fb1db7fb493e4fc1083d4131b650dcf69a9 (patch)
treee41502bbcf65d709bad27f34d06bcf7d11f67560
parentGradient tool: fixed live updating of midstop dragging + [ 1667584 ] Crash wh... (diff)
downloadinkscape-3e032fb1db7fb493e4fc1083d4131b650dcf69a9.tar.gz
inkscape-3e032fb1db7fb493e4fc1083d4131b650dcf69a9.zip
Gradient tool: fork gradients when adding a stop
(bzr r2759)
-rw-r--r--src/gradient-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp
index 77947394d..e9192652a 100644
--- a/src/gradient-context.cpp
+++ b/src/gradient-context.cpp
@@ -273,7 +273,7 @@ sp_gradient_context_add_stop_near_point (SPGradientContext *rc, SPItem *item, N
} while (!fill_or_stroke && !addknot) ;
if (addknot) {
- SPGradient *vector = sp_gradient_get_vector (gradient, false);
+ SPGradient *vector = sp_gradient_get_forked_vector_if_necessary (gradient, false);
SPStop* prev_stop = sp_first_stop(vector);
SPStop* next_stop = sp_next_stop(prev_stop);
while ( (next_stop) && (next_stop->offset < offset) ) {