[dia] Don't ignore style given by <svg:g ... subshape="true">



commit 7595626c21a04e734f1b82ae4bccc7e6090dcd91
Author: Hans Breuer <hans breuer org>
Date:   Sun Mar 27 22:32:36 2011 +0200

    Don't ignore style given by <svg:g ... subshape="true">
    
    It would probably be better to switch the group handling to reuse
    the given style recursively, but this is already better than just
    throwing the style away.

 objects/custom/shape_info.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/objects/custom/shape_info.c b/objects/custom/shape_info.c
index 6d4c453..f588a70 100644
--- a/objects/custom/shape_info.c
+++ b/objects/custom/shape_info.c
@@ -461,12 +461,10 @@ parse_svg_node(ShapeInfo *info, xmlNodePtr node, xmlNsPtr svg_ns,
           /* add elements from the group element, but make it a subshape */
         GraphicElementSubShape *subshape = g_new0(GraphicElementSubShape, 1);
         ShapeInfo* tmpinfo = g_new0(ShapeInfo, 1);
-        DiaSvgStyle tmp_s;
         xmlChar *v_anchor_attr = xmlGetProp(node, (const xmlChar*)"v_anchor");
         xmlChar *h_anchor_attr = xmlGetProp(node, (const xmlChar*)"h_anchor");
       
-        dia_svg_style_init (&tmp_s, style);
-        parse_svg_node(tmpinfo, node, svg_ns, &tmp_s, filename);
+        parse_svg_node(tmpinfo, node, svg_ns, &s, filename);
         
         tmpinfo->shape_bounds.top = DBL_MAX;
         tmpinfo->shape_bounds.left = DBL_MAX;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]