[gnumeric] xls: fix export of conditional italic, I hope.



commit 299b9fdf5a52ff53519a6bd093ed52f3badb897f
Author: Morten Welinder <terra gnome org>
Date:   Sat Mar 10 12:48:44 2012 -0500

    xls: fix export of conditional italic, I hope.

 plugins/excel/ChangeLog        |    2 ++
 plugins/excel/ms-excel-write.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 295b80b..66c5cb8 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -4,6 +4,8 @@
 	to help fix stacking issues.
 	(excel_sheet_new): Eliminate special lists for lines and
 	textboxes.
+	(cb_write_condition): Make export of conditional italic match
+	import.
 
 2012-03-09  Morten Welinder  <terra gnome org>
 
diff --git a/plugins/excel/ms-excel-write.c b/plugins/excel/ms-excel-write.c
index b5059b2..9542429 100644
--- a/plugins/excel/ms-excel-write.c
+++ b/plugins/excel/ms-excel-write.c
@@ -989,7 +989,7 @@ cb_write_condition (GnmStyleConditions const *sc, CondDetails *cd,
 					GSF_LE_SET_GUINT16 (fbuf+72, 0x190);
 				if (gnm_style_is_element_set (s, MSTYLE_FONT_ITALIC) &&
 				    gnm_style_get_font_italic (s))
-					tmp |= 1;
+					tmp |= 2;
 				else
 					tmp |= 0;
 			} else



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