[gnumeric] xlsx: don't write multiple identical styles.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: don't write multiple identical styles.
- Date: Sun, 1 Jun 2014 00:33:31 +0000 (UTC)
commit 0499709733f730a420f878c79fef355f86f568a5
Author: Morten Welinder <terra gnome org>
Date: Sat May 31 20:33:01 2014 -0400
xlsx: don't write multiple identical styles.
plugins/excel/ChangeLog | 2 ++
plugins/excel/xlsx-write.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index b0aaa78..09db90f 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -2,6 +2,8 @@
* xlsx-write.c (xlsx_write_cells): Support value formats. Fixes
#724517.
+ (xlsx_write_workbook): Make styles hash use proper hash and
+ equality functions.
2014-05-23 Morten Welinder <terra gnome org>
diff --git a/plugins/excel/xlsx-write.c b/plugins/excel/xlsx-write.c
index 1406432..6849b48 100644
--- a/plugins/excel/xlsx-write.c
+++ b/plugins/excel/xlsx-write.c
@@ -2799,7 +2799,7 @@ xlsx_write_workbook (XLSXWriteState *state, GsfOutfile *root_part)
state->shared_string_hash = g_hash_table_new (g_direct_hash, g_direct_equal);
state->shared_string_array = g_ptr_array_new ();
state->styles_hash = g_hash_table_new_full
- (g_direct_hash, g_direct_equal,
+ (gnm_style_hash, (GEqualFunc)gnm_style_equal,
(GDestroyNotify)gnm_style_unref, NULL);
state->styles_array = g_ptr_array_new ();
state->dxfs_hash = g_hash_table_new (g_direct_hash, g_direct_equal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]