gnumeric r16270 - trunk/plugins/excel



Author: jbrefort
Date: Sat Jan 12 15:16:06 2008
New Revision: 16270
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16270&view=rev

Log:
2008-01-12  Jean Brefort  <jean brefort normalesup org>

	* ms-chart.c: (ms_excel_chart_write): save graph title if any and
	if the first chart has no title. [#301720]



Modified:
   trunk/plugins/excel/ChangeLog
   trunk/plugins/excel/ms-chart.c

Modified: trunk/plugins/excel/ms-chart.c
==============================================================================
--- trunk/plugins/excel/ms-chart.c	(original)
+++ trunk/plugins/excel/ms-chart.c	Sat Jan 12 15:16:06 2008
@@ -5568,6 +5568,9 @@
 
 	/* write chart title if any */
 	label = GOG_LABEL (gog_object_get_child_by_name (GOG_OBJECT (state.chart), "Title"));
+	if (label == NULL)
+		/* in that case, try the graph title */
+		label = GOG_LABEL (gog_object_get_child_by_name (GOG_OBJECT (state.graph), "Title"));
 	if (label != NULL) {
 		GOData *text = gog_dataset_get_dim (GOG_DATASET (label), 0);
 		if (text != NULL) {



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