[gnumeric] xlsx: keep the default backplane style.



commit 50a0901508ff329f6a0dc749f3de595d571b5a7d
Author: Morten Welinder <terra gnome org>
Date:   Sat Jan 17 11:22:09 2015 -0500

    xlsx: keep the default backplane style.
    
    Our default is different from Excel's, but it is still the default.
    If we override it, we have no hope of round-tripping files.

 plugins/excel/ChangeLog           |    3 +++
 plugins/excel/xlsx-read-drawing.c |    4 ----
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 9f071b0..e2fa92e 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,5 +1,8 @@
 2015-01-17  Morten Welinder  <terra gnome org>
 
+       * xlsx-read-drawing.c (xlsx_plot_area): Keep the backplane in
+       default style.
+
        * xlsx-write-drawing.c (xlsx_write_go_style): Write marker colors.
 
        * xlsx-read-drawing.c (xlsx_chart_solid_fill): Fix reading marker
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 1ae53a5..b6abae6 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -1539,10 +1539,6 @@ xlsx_plot_area (GsfXMLIn *xin, G_GNUC_UNUSED xmlChar const **attrs)
        XLSXReadState *state = (XLSXReadState *)xin->user_state;
        GogObject *backplane = gog_object_add_by_name (
                GOG_OBJECT (state->chart), "Backplane", NULL);
-       /* set a transparent default background */
-       GOStyle *style = go_styled_object_get_style (GO_STYLED_OBJECT (backplane));
-       style->fill.type = GO_STYLE_FILL_NONE;
-       style->fill.auto_type = FALSE;
        xlsx_chart_push_obj (state, backplane);
 }
 


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