[gnumeric] avoid writing some placeholder names



commit 5d32f16be2aa12b163997f5a8f9d334a1920269e
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Mon May 16 18:37:34 2011 -0600

    avoid writing some placeholder names
    
    2011-05-16  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-write.c (odf_write_named_expression): avoid writing some
    	placeholder names

 plugins/openoffice/ChangeLog          |    5 +++++
 plugins/openoffice/openoffice-write.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index bfbb0b0..3bf0f7c 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
 2011-05-16  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* openoffice-write.c (odf_write_named_expression): avoid writing some 
+	placeholder names
+
+2011-05-16  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* openoffice-write.c (odf_validation_base_cell_address): new
 	(odf_validation_append_expression): new
 	(odf_validation_append_expression_pair): new
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 233b464..8593284 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -4126,7 +4126,7 @@ odf_write_named_expression (gpointer key, GnmNamedExpr *nexpr, GnmOOExport *stat
 					      nexpr->pos.sheet->name_unquoted);
 
 		gsf_xml_out_end_element (state->xml); /* </table:named-range> */
-	} else {
+	} else if (!expr_name_is_placeholder (nexpr) || nexpr->ref_count > 1) {
 		gsf_xml_out_start_element
 			(state->xml, TABLE "named-expression");
 		gsf_xml_out_add_cstr (state->xml, TABLE "name", name);



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