Code

Fixed bug due to adding of new pointtype at the start of the enum which corrupted...
authorjohanengelen <johanengelen@users.sourceforge.net>
Thu, 8 Mar 2007 15:13:01 +0000 (15:13 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Thu, 8 Mar 2007 15:13:01 +0000 (15:13 +0000)
src/sp-gradient.h

index 8576d0a82aefcce6e7e093fdb2a6cd1f24061792..52234b50e47d6b1dcbce049d1ee0efe031dc0952 100644 (file)
@@ -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;
 
 /**