[gnumeric] xls: fix pivot related umr.



commit 4937ec0f582b37bf5cecd45ad7aac99786f0e82b
Author: Morten Welinder <terra gnome org>
Date:   Mon Apr 22 13:41:28 2013 -0400

    xls: fix pivot related umr.

 plugins/excel/ChangeLog       | 1 +
 plugins/excel/ms-excel-read.c | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 429ad5c..040c368 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -2,6 +2,7 @@
 
        * ms-excel-read.c (excel_read_FONT): Ensure ->script, ->underline,
        and ->codepage are set.
+       (gnm_xl_importer_new): Set more pivot fields.
 
 2013-04-20  Morten Welinder  <terra gnome org>
 
diff --git a/plugins/excel/ms-excel-read.c b/plugins/excel/ms-excel-read.c
index bcf5f88..937aa5f 100644
--- a/plugins/excel/ms-excel-read.c
+++ b/plugins/excel/ms-excel-read.c
@@ -3430,7 +3430,9 @@ gnm_xl_importer_new (GOIOContext *context, WorkbookView *wb_view, char const *op
        importer->excel_sheets     = g_ptr_array_new ();
        importer->XF_cell_records  = g_ptr_array_new ();
        importer->pivot.cache_by_index = g_ptr_array_new ();
-       importer->pivot.slicer= NULL;
+       importer->pivot.slicer = NULL;
+       importer->pivot.field_count = 0;
+       importer->pivot.record_count = 0;
        importer->format_table     = g_hash_table_new_full (
                                                            g_direct_hash, g_direct_equal,
                                                            NULL, (GDestroyNotify)biff_format_data_destroy);


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