From 79fe6f44b13cef34fcb3fc65a4c391b972300bc4 Mon Sep 17 00:00:00 2001 From: Nikita Kitaev Date: Sun, 24 Jan 2010 00:28:57 -0800 Subject: [PATCH] Minor changes --- synfig-core/src/modules/mod_svg/layer_svg.cpp | 2 +- synfig-core/src/modules/mod_svg/svg_parser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-core/src/modules/mod_svg/layer_svg.cpp b/synfig-core/src/modules/mod_svg/layer_svg.cpp index 7e36990..ce3be00 100644 --- a/synfig-core/src/modules/mod_svg/layer_svg.cpp +++ b/synfig-core/src/modules/mod_svg/layer_svg.cpp @@ -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 $"); diff --git a/synfig-core/src/modules/mod_svg/svg_parser.cpp b/synfig-core/src/modules/mod_svg/svg_parser.cpp index 84609a2..680aa4f 100644 --- a/synfig-core/src/modules/mod_svg/svg_parser.cpp +++ b/synfig-core/src/modules/mod_svg/svg_parser.cpp @@ -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 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()); -- 2.7.4