Fix transform code misnesting
authorNikita Kitaev <nikitakit@gmail.com>
Mon, 23 Nov 2009 06:23:13 +0000 (22:23 -0800)
committerNikita Kitaev <nikitakit@gmail.com>
Mon, 23 Nov 2009 06:24:02 +0000 (22:24 -0800)
synfig-core/src/modules/mod_svg/svg_parser.cpp

index 096afa6..968981c 100644 (file)
@@ -390,17 +390,17 @@ Svg_parser::parser_graphics(const xmlpp::Node* node,xmlpp::Element* root,String
                        }
 
                        if(typeStroke==2){ //gradient in onto mode (stroke)
-                       if (SVG_RESOLVE_BLINE)
-                               build_fill(child_stroke,fill,mtx);
-                       else
-                               build_fill(child_stroke,fill,NULL);
-                       }
-                       if (SVG_RESOLVE_BLINE)
-                               parser_effects(nodeElement,child_layer,parent_style,NULL);
-                       else
-                               parser_effects(nodeElement,child_layer,parent_style,mtx);
-       
+                               if (SVG_RESOLVE_BLINE)
+                                       build_fill(child_stroke,fill,mtx);
+                               else
+                                       build_fill(child_stroke,fill,NULL);
+                       }       
                }
+
+               if (SVG_RESOLVE_BLINE)
+                       parser_effects(nodeElement,child_layer,parent_style,NULL);
+               else
+                       parser_effects(nodeElement,child_layer,parent_style,mtx);
        }
 }