From: johanengelen Date: Sun, 25 Mar 2007 23:04:23 +0000 (+0000) Subject: Gradient tool: fork gradients when adding a stop X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b39ef664c9e65b893c07b3ec794b7e2240f8c251;p=inkscape.git Gradient tool: fork gradients when adding a stop --- 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) ) {