diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-03-25 23:04:23 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-03-25 23:04:23 +0000 |
| commit | 3e032fb1db7fb493e4fc1083d4131b650dcf69a9 (patch) | |
| tree | e41502bbcf65d709bad27f34d06bcf7d11f67560 /src/gradient-context.cpp | |
| parent | Gradient tool: fixed live updating of midstop dragging + [ 1667584 ] Crash wh... (diff) | |
| download | inkscape-3e032fb1db7fb493e4fc1083d4131b650dcf69a9.tar.gz inkscape-3e032fb1db7fb493e4fc1083d4131b650dcf69a9.zip | |
Gradient tool: fork gradients when adding a stop
(bzr r2759)
Diffstat (limited to 'src/gradient-context.cpp')
| -rw-r--r-- | src/gradient-context.cpp | 2 |
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) ) { |
