[gnumeric] ODF export: also write data styles for text formats



commit aa429d84288ec68bfa38ec6430a7e776dee97e42
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Tue Nov 30 13:46:39 2010 -0700

    ODF export: also write data styles for text formats
    
    2010-11-30  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-write.c (odf_write_style_goformat_name): also write
    	data styles for text formats

 plugins/openoffice/ChangeLog          |    5 +++++
 plugins/openoffice/openoffice-write.c |    3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 906238b..4bed76f 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
 2010-11-30  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* openoffice-write.c (odf_write_style_goformat_name): also write
+	data styles for text formats
+	
+2010-11-30  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* openoffice-read.c (styles_dtd): connect style:map handling to 
 	number:text-style since OOo seems to use maps attached to 
 	number:text-style to render dates that it flagged as numbers.
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index f6a19ed..34c010b 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -1312,8 +1312,7 @@ odf_write_style_goformat_name (GnmOOExport *state, GOFormat const *gof)
 {
 	char const *name;
 
-	if ((gof == NULL) || go_format_is_markup (gof)
-	    || go_format_is_text (gof))
+	if ((gof == NULL) || go_format_is_markup (gof))
 		return;
 
 	if (go_format_is_general (gof))



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