Code

Gradient tool: fork gradients when adding a stop
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 25 Mar 2007 23:04:23 +0000 (23:04 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 25 Mar 2007 23:04:23 +0000 (23:04 +0000)
src/gradient-context.cpp

index 77947394d246b6884be2870a3d946a8cb8206947..e9192652a63675b2736a02c1e00c1f6dceb8a36a 100644 (file)
@@ -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) ) {