[gnumeric] fix saving of unformatted text



commit d20c2b2b505ce71132c8cbaf8070c09d7c39a548
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Wed May 13 08:16:30 2009 -0600

    fix saving of unformatted text
    
    2009-05-13  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-write.c (odf_write_cell): also write unformatted text
---
 plugins/openoffice/ChangeLog          |    6 +++++-
 plugins/openoffice/openoffice-write.c |    2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 58f90fb..1c66631 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,6 +1,10 @@
+2009-05-13  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* openoffice-write.c (odf_write_cell): also write unformatted text
+	
 2009-05-12  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-	* openoffice-write.c (opendoc_content_dtd): permit nested text:span
+	* openoffice-read.c (opendoc_content_dtd): permit nested text:span
 
 2009-05-12  Andreas J. Guelzow <aguelzow pyrshep ca>
 
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index c0ae282..1bc46d2 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -604,7 +604,7 @@ odf_write_cell (GnmOOExport *state, GnmCell *cell, GnmRange const *merge_range,
 
 		}
 
-		if (write_rendered_string) {
+		if (write_rendered_string || (VALUE_FMT (cell->value) == NULL)) {
 			char *rendered_string = gnm_cell_get_rendered_text (cell);
 			
 			gsf_xml_out_start_element (state->xml, TEXT "p");



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