[gnumeric] xlsx: fix last fix.



commit d6faf3c9b78f3d98448d4bec06c0e62199905fd3
Author: Morten Welinder <terra gnome org>
Date:   Tue Mar 24 08:13:02 2015 -0400

    xlsx: fix last fix.

 plugins/excel/xlsx-write-drawing.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/plugins/excel/xlsx-write-drawing.c b/plugins/excel/xlsx-write-drawing.c
index 5b598a1..cded54c 100644
--- a/plugins/excel/xlsx-write-drawing.c
+++ b/plugins/excel/xlsx-write-drawing.c
@@ -462,13 +462,12 @@ xlsx_write_go_style_full (GsfXMLOut *xml, GOStyle *style, const XLSXStyleContext
                        "dashDot",       /* GO_LINE_DASH_DOT */
                        "lgDashDot",     /* GO_LINE_DASH_DOT_DOT */
                };
-               gboolean is_none = (!style->line.auto_dash && style->line.dash_type == GO_LINE_NONE);
+               gboolean is_none = style->line.auto_dash
+                       ? !sctx->def_has_lines
+                       : style->line.dash_type == GO_LINE_NONE;
 
                gsf_xml_out_start_element (xml, "a:ln");
-               if (is_none) {
-                       /* Special meaning of zero width  */
-                       gsf_xml_out_add_int (xml, "w", 0);
-               } else if (!style->line.auto_width && style->line.width > 0)
+               if (!style->line.auto_width && style->line.width > 0)
                        gsf_xml_out_add_int (xml, "w", style->line.width * 12700);
 
                if (!style->line.auto_color) {


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