From: Nikita Kitaev Date: Sun, 25 Oct 2009 05:23:24 +0000 (-0700) Subject: Fix closepath problems X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9e2225fa6926e20e833ce1c495332b38a4938cb8;p=synfig.git Fix closepath problems The index is no longer incremented twice when encountering "z" Add support for elements other than "M/m" after "z" --- diff --git a/synfig-core/src/modules/mod_svg/svg_parser.cpp b/synfig-core/src/modules/mod_svg/svg_parser.cpp index 25f3e24..6a5d12c 100644 --- a/synfig-core/src/modules/mod_svg/svg_parser.cpp +++ b/synfig-core/src/modules/mod_svg/svg_parser.cpp @@ -611,6 +611,7 @@ Svg_parser::parser_path_d(String path_d,Matrix* mtx){ ax=ay=0; float actual_x=0,actual_y=0; //in svg coordinate space float old_x=0,old_y=0; //needed in rare cases + float init_x=0,init_y=0; //for closepath commands loop=false; for(unsigned int i=0;i