diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-03-08 15:13:01 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-03-08 15:13:01 +0000 |
| commit | f4d0a8b4ab398506e0aa278682546b703cb576fe (patch) | |
| tree | 3950180b489d3776b3deff360d0708165bd2f7b6 /src | |
| parent | Add and adjust fill channels (diff) | |
| download | inkscape-f4d0a8b4ab398506e0aa278682546b703cb576fe.tar.gz inkscape-f4d0a8b4ab398506e0aa278682546b703cb576fe.zip | |
Fixed bug due to adding of new pointtype at the start of the enum which corrupted indexing into the stop shapes and description array.
(bzr r2572)
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-gradient.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sp-gradient.h b/src/sp-gradient.h index 8576d0a82..52234b50e 100644 --- a/src/sp-gradient.h +++ b/src/sp-gradient.h @@ -39,8 +39,7 @@ typedef enum { } SPGradientState; typedef enum { - POINT_G_INVALID, - POINT_LG_BEGIN, + POINT_LG_BEGIN =0, //start enum at 0 (for indexing into gr_knot_shapes array for example) POINT_LG_END, POINT_LG_MID, POINT_RG_CENTER, @@ -48,7 +47,10 @@ typedef enum { POINT_RG_R2, POINT_RG_FOCUS, POINT_RG_MID1, - POINT_RG_MID2 + POINT_RG_MID2, + // insert new point types here. + + POINT_G_INVALID } GrPointType; /** |
