gnumeric r16525 - trunk/plugins/excel



Author: mortenw
Date: Sun Apr 27 22:37:03 2008
New Revision: 16525
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16525&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:
   trunk/plugins/excel/ChangeLog
   trunk/plugins/excel/ms-excel-read.c

Modified: trunk/plugins/excel/ms-excel-read.c
==============================================================================
--- trunk/plugins/excel/ms-excel-read.c	(original)
+++ trunk/plugins/excel/ms-excel-read.c	Sun Apr 27 22:37:03 2008
@@ -2767,7 +2767,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]