Module: synfig Branch: nikitakit_svg Commit: 79fe6f44b13cef34fcb3fc65a4c391b972300bc4 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=79fe6f44b13cef34fcb3fc65a4c391b972300bc4
Author: Nikita Kitaev <nikita...@gmail.com> Date: Sun Jan 24 00:28:57 2010 -0800 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<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()); ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl