Fix possible crash when right click on a Paste Canvas Layer that doesn't have a canva...
[synfig.git] / synfig-core / src / modules / mod_svg / svg_parser.h
index 6402f69..3ac8f9b 100644 (file)
@@ -65,13 +65,13 @@ typedef struct stop_t{
         float pos;
 }ColorStop;
 typedef struct linear_g{
-       char name[40];
+       char name[80];
        float x1,x2,y1,y2;
        std::list<ColorStop*> *stops;
        Matrix *transform;
 }LinearGradient;
 typedef struct radial_g{
-       char name[40];
+       char name[80];
        float cx,cy;//center point
        //float fx,fy; //not supported by Synfig
        float r; //radius
@@ -213,6 +213,7 @@ private:
                int getGreen(String hex);
                int getBlue(String hex);
                int hextodec(String hex);
+               int getColor(String name, int position);
                float getDimension(const String ac);
                //string functions
                void removeS(String *input);