gnumeric r16525 - trunk/plugins/excel
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16525 - trunk/plugins/excel
- Date: Sun, 27 Apr 2008 23:37:04 +0100 (BST)
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]