From b39ef664c9e65b893c07b3ec794b7e2240f8c251 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 25 Mar 2007 23:04:23 +0000 Subject: [PATCH] Gradient tool: fork gradients when adding a stop --- src/gradient-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ) { -- 2.30.2