[gnumeric] Brown bag: Fix xls export issue that made files readable by Gnumeric only.



commit 777b794c0840a5d1a651ee2a33cfc84e73f02672
Author: Morten Welinder <terra gnome org>
Date:   Wed May 6 09:26:18 2009 -0400

    Brown bag: Fix xls export issue that made files readable by Gnumeric only.
---
 NEWS                          |    1 +
 plugins/excel/ChangeLog       |    5 +++++
 plugins/excel/ms-excel-read.c |    6 ++++++
 3 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/NEWS b/NEWS
index 992da0c..43c034f 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ Morten:
 	* Fix dependency problem with names.  [#581117]
 	* Fix style-allocation screwup.
 	* Fix xls export performance problem.  [#581378]
+	* Fix xls export issue that made files readable by Gnumeric only.
 
 --------------------------------------------------------------------------
 Gnumeric 1.9.6
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 2c407a7..e2f1563 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-06  Morten Welinder  <terra gnome org>
+
+	* ms-excel-read.c (excel_read_init): Use the GnmFunc's case in the
+	hash.
+
 2009-05-05  Morten Welinder  <terra gnome org>
 
 	* ms-excel-write.c (excel_sheet_write_block): Add one-element
diff --git a/plugins/excel/ms-excel-read.c b/plugins/excel/ms-excel-read.c
index 0e9fbb1..31ac0f2 100644
--- a/plugins/excel/ms-excel-read.c
+++ b/plugins/excel/ms-excel-read.c
@@ -6848,6 +6848,12 @@ excel_read_init (void)
 	for (i = 0; i < excel_func_desc_size; i++) {
 		const ExcelFuncDesc *efd = excel_func_desc + i;
 		const char *name = efd->name;
+		GnmFunc *func = gnm_func_lookup (name, NULL);
+
+		/* Fix case.  */
+		if (func)
+			name = gnm_func_get_name (func);
+
 		g_assert (g_hash_table_lookup (excel_func_by_name, name) ==
 			  NULL);
 		g_hash_table_insert (excel_func_by_name,



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