Minor changes
authorNikita Kitaev <nikitakit@gmail.com>
Sun, 24 Jan 2010 08:28:57 +0000 (00:28 -0800)
committerNikita Kitaev <nikitakit@gmail.com>
Sun, 24 Jan 2010 08:28:57 +0000 (00:28 -0800)
synfig-core/src/modules/mod_svg/layer_svg.cpp
synfig-core/src/modules/mod_svg/svg_parser.cpp

index 7e36990..ce3be00 100644 (file)
@@ -51,7 +51,7 @@ using namespace synfig;
 SYNFIG_LAYER_INIT(svg_layer);
 SYNFIG_LAYER_SET_NAME(svg_layer,"svg_layer");
 SYNFIG_LAYER_SET_LOCAL_NAME(svg_layer,N_("Import Svg"));
-SYNFIG_LAYER_SET_CATEGORY(svg_layer,N_("Do Not Use"));//Hide this layer in the menu
+SYNFIG_LAYER_SET_CATEGORY(svg_layer,CATEGORY_DO_NOT_USE);//Hide this layer in the menu
 SYNFIG_LAYER_SET_VERSION(svg_layer,"0.1");
 SYNFIG_LAYER_SET_CVS_ID(svg_layer,"$Id: layer_svg.cpp 2240 2008-11-22 15:35:33Z dooglus $");
 
index 84609a2..680aa4f 100644 (file)
@@ -1641,9 +1641,9 @@ Svg_parser::newMatrix(float a,float b,float c,float d,float e,float f){
 Matrix*
 Svg_parser::newMatrix(const String mvector){
        if(!mvector.empty()){
-               Matrix* data=(Matrix*)malloc(sizeof(Matrix));
                std::vector<String> tokens=tokenize(mvector,",");
                if(tokens.size()!=6) return newMatrix(1,0,0,1,0,0);
+               Matrix* data=(Matrix*)malloc(sizeof(Matrix));
                data->a=atof(tokens.at(0).data());
                data->b=atof(tokens.at(1).data());
                data->c=atof(tokens.at(2).data());