[gnumeric] xls: fix export of conditional formats' font.



commit 36bb4a52c0db57183e74284b97af7108754afa73
Author: Morten Welinder <terra gnome org>
Date:   Wed Mar 7 09:30:23 2012 -0500

    xls: fix export of conditional formats' font.
    
    We forgot to set the font flags in the record we exported.

 NEWS                           |    1 +
 plugins/excel/ChangeLog        |    5 +++++
 plugins/excel/ms-excel-write.c |    2 ++
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 46567b3..b60b053 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Morten:
 	* Hook up unknown_image icon for ssconvert too.
 	* Fix xls save crash.  [#671267]
 	* Fix xls page break export.  [Part of #671513]
+	* Fix xls export of conditional formats' font.  [Part of #671513]
 
 --------------------------------------------------------------------------
 Gnumeric 1.11.2
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 2c978a7..5e7cdcd 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-07  Morten Welinder  <terra gnome org>
+
+	* ms-excel-write.c (cb_write_condition): Actually save the font
+	flags.  Part of #671531.
+
 2012-03-06  Morten Welinder  <terra gnome org>
 
 	* ms-excel-write.c (cb_write_condition): Handle lack of style
diff --git a/plugins/excel/ms-excel-write.c b/plugins/excel/ms-excel-write.c
index b5ba250..ac27635 100644
--- a/plugins/excel/ms-excel-write.c
+++ b/plugins/excel/ms-excel-write.c
@@ -1020,6 +1020,8 @@ cb_write_condition (GnmStyleConditions const *sc, CondDetails *cd,
 				tmp = 0xFFFFFFFF;
 			GSF_LE_SET_GUINT32 (fbuf+80, tmp);
 
+			GSF_LE_SET_GUINT8 (fbuf + 88, font_flags);
+
 			ms_biff_put_var_write (bp, fbuf, sizeof (fbuf));
 			flags |= 0x04000000;
 		}



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