+ }
+
+ Glib::ustring obj_style =nodeElement->get_attribute_value("style");
+ Glib::ustring obj_fill =nodeElement->get_attribute_value("fill");
+
+ //style
+ String fill =loadAttribute("fill",obj_style,parent_style,"none");
+ String stroke =loadAttribute("stroke",obj_style,parent_style,"none");
+ String stroke_width =loadAttribute("stroke-width",obj_style,parent_style,"1px");
+ String stroke_linecap =loadAttribute("stroke-linecap",obj_style,parent_style,"butt");
+ String stroke_linejoin =loadAttribute("stroke-linejoin",obj_style,parent_style,"miter");
+ String stroke_opacity =loadAttribute("stroke-opacity",obj_style,parent_style,"1");
+ String fill_opacity =loadAttribute("fill-opacity",obj_style,parent_style,"1");
+ String opacity =loadAttribute("opacity",obj_style,parent_style,"1");
+
+
+ //Fill
+ int typeFill=0; //nothing
+
+ if(fill.compare("none")!=0){
+ typeFill=1; //simple
+ }
+ if(typeFill==1 && fill.compare(0,3,"url")==0){
+ typeFill=2; //gradient
+ }
+ //Stroke
+ int typeStroke=0;//nothing
+
+ if(stroke.compare("none")!=0){
+ typeStroke=1; //simple
+ }
+ if(typeStroke==1 && stroke.compare(0,3,"url")==0){
+ typeStroke=2; //gradient
+ }
+
+ xmlpp::Element *root_layer = root;
+ if(typeFill!=0 && typeStroke!=0){
+ root_layer=nodeStartBasicLayer(root->add_child("layer"));
+ }
+ /*if ((SVG_CONVERT_PATHS == 1 && typeFill!=0) || (SVG_CONVERT_PATHS == 2 && typeFill!=0 && typeStroke==0)) {
+ //make simple fills
+ if(nodename.compare("rect")==0){
+ rect_simple(nodeElement,root_layer,fill,fill_opacity,opacity);
+ }
+
+ if(typeFill==2){
+ build_url (root_layer->add_child("layer"),fill,mtx);
+ }
+ }*/
+
+ if(nodename.compare("rect")==0){