[gnumeric] Only split on N that are odf path commands



commit 3743c781819e4be863bf0b7291c6eebb33a66432
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Tue Sep 11 23:00:24 2012 -0600

    Only split on N that are odf path commands
    
    2012-09-11  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-read.c (odf_custom_shape_end): only split on "N" that
    	isn't part of a variable name

 plugins/openoffice/ChangeLog         |    5 +++++
 plugins/openoffice/openoffice-read.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index aca3c5a..73db56f 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
 2012-09-11  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* openoffice-read.c (odf_custom_shape_end): only split on "N" that
+	isn't part of a varaible name
+
+2012-09-11  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* openoffice-write.c (odf_store_data_style_for_style_with_name): new
 	(odf_write_office_styles): call odf_store_data_style_for_style_with_name
 	to ensure data files for named styles are collected (and later written)
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index de3e3bc..641f8b6 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -9391,7 +9391,7 @@ odf_custom_shape_end (GsfXMLIn *xin, GsfXMLBlob *blob)
 		}
 	}
 	paths = g_ptr_array_new_with_free_func ((GDestroyNotify) go_path_free);
-	strs = g_strsplit (state->chart.cs_enhanced_path, "N", 0);
+	strs = g_strsplit (state->chart.cs_enhanced_path, " N", 0);
 	for (cur = strs; *cur != NULL; cur++) {
 		path = go_path_new_from_odf_enhanced_path (*cur, vals);
 		if (path)



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