[dia] svg: Fix <ellipse/> roundtrip (width = rx * 2)



commit ba9eeba631cef307827a1ee99c7eb56ba0931e5f
Author: Hans Breuer <hans breuer org>
Date:   Sun Aug 18 15:45:32 2013 +0200

    svg: Fix <ellipse/> roundtrip (width = rx * 2)

 plug-ins/svg/svg-import.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/svg/svg-import.c b/plug-ins/svg/svg-import.c
index e57b6a4..10c9b72 100644
--- a/plug-ins/svg/svg-import.c
+++ b/plug-ins/svg/svg-import.c
@@ -838,8 +838,8 @@ read_ellipse_svg(xmlNodePtr node, DiaSvgStyle *parent_style,
   start.x = _node_get_real (node, "cx", 0.0);
   start.y = _node_get_real (node, "cy", 0.0);
 
-  width = _node_get_real (node, "rx", 0.0);
-  height = _node_get_real (node, "ry", 0.0);
+  width = _node_get_real (node, "rx", 0.0) * 2;
+  height = _node_get_real (node, "ry", 0.0) * 2;
   /* not part of ellipse attributes, just here for circle */
   str = xmlGetProp(node, (const xmlChar *)"r");
   if (str) {


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