gnumeric r16526 - branches/gnumeric-1-8/plugins/excel
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16526 - branches/gnumeric-1-8/plugins/excel
- Date: Sun, 27 Apr 2008 23:37:20 +0100 (BST)
Author: mortenw
Date: Sun Apr 27 22:37:20 2008
New Revision: 16526
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16526&view=rev
Log:
2008-04-27 Morten Welinder <terra gnome org>
* ms-excel-read.c (excel_sheet_insert_val): Don't set formats for
blanks and bools. Fixes #530259.
Modified:
branches/gnumeric-1-8/plugins/excel/ChangeLog
branches/gnumeric-1-8/plugins/excel/ms-excel-read.c
Modified: branches/gnumeric-1-8/plugins/excel/ms-excel-read.c
==============================================================================
--- branches/gnumeric-1-8/plugins/excel/ms-excel-read.c (original)
+++ branches/gnumeric-1-8/plugins/excel/ms-excel-read.c Sun Apr 27 22:37:20 2008
@@ -2757,7 +2757,9 @@
BiffXFData const *xf = excel_set_xf (esheet, q);
if (xf != NULL && xf->is_simple_format &&
- VALUE_FMT (v) == NULL)
+ VALUE_FMT (v) == NULL &&
+ !VALUE_IS_EMPTY (v) && /* We cannot set formats for */
+ !VALUE_IS_BOOLEAN (v)) /* singetons. */
value_set_fmt (v, xf->style_format);
gnm_cell_set_value (cell, v);
} else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]