+ rect_simple(nodeElement,child_fill,fill,fill_opacity,opacity);
+ if(typeFill==2){
+ build_url (child_fill->add_child("layer"),fill,mtx);
+ }
+ typeFill=0; //set fill to zero so as not to create a fill layer in the paths section
+ }
+ }
+
+ //=======================================================================
+ std::list<std::list<Vertice*> > k;
+ if (nodename.compare("path")==0 || typeStroke!=0 || SVG_CONVERT_PATHS==3) {
+ //if we are creating a bline
+
+ //First, create the list of vertices
+
+
+ /*if(nodename.compare("rect")==0){
+ parser_rect(nodeElement,root,parent_style,mtx);
+ }else if(nodename.compare("polygon")==0){
+ parser_polygon(nodeElement,root,parent_style,mtx);
+ }else if(nodename.compare("path")==0){
+ parser_path (nodeElement,root,parent_style,mtx);
+ } */
+
+ if(nodename.compare("path")==0){
+ k=parser_path_d (nodeElement->get_attribute_value("d"),mtx);
+ } else {return;}
+
+ int n = k.size();
+ String bline_id[n];
+ String offset_id[n];
+ for (int i=0;i<n;i++){
+ bline_id[i]=new_guid();
+ offset_id[i]=new_guid();
+ }
+
+ std::list<std::list<Vertice*> >::iterator aux = k.begin();
+ if(typeFill!=0){//region layer
+ for (int i=0; aux!=k.end(); aux++){
+ xmlpp::Element *child_region=child_fill->add_child("layer");
+ child_region->set_attribute("type","region");
+ child_region->set_attribute("active","true");
+ child_region->set_attribute("version","0.1");
+ child_region->set_attribute("desc",id);
+ build_param (child_region->add_child("param"),"z_depth","real","0.0000000000");
+ build_param (child_region->add_child("param"),"amount","real","1.0000000000");
+ build_param (child_region->add_child("param"),"blend_method","integer","0");
+ build_color (child_region->add_child("param"),getRed(fill),getGreen(fill),getBlue(fill),atof(fill_opacity.data())*atof(opacity.data()));
+ build_vector (child_region->add_child("param"),"offset",0,0,offset_id[i]);
+ build_param (child_region->add_child("param"),"invert","bool","false");
+ build_param (child_region->add_child("param"),"antialias","bool","true");
+ build_param (child_region->add_child("param"),"feather","real","0.0000000000");
+ build_param (child_region->add_child("param"),"blurtype","integer","1");
+ if(fill_rule.compare("evenodd")==0) build_param (child_region->add_child("param"),"winding_style","integer","1");
+ else build_param (child_region->add_child("param"),"winding_style","integer","0");
+
+ build_bline (child_region->add_child("param"),*aux,loop,bline_id[i]);
+
+ if(k.size()==1 && typeFill==2){ //gradient in onto mode (fill)
+ build_url(child_fill->add_child("layer"),fill,mtx);
+ }
+ i++;
+ }