gnumeric r16269 - branches/gnumeric-1-8/plugins/excel
- From: jbrefort svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16269 - branches/gnumeric-1-8/plugins/excel
- Date: Sat, 12 Jan 2008 15:15:30 +0000 (GMT)
Author: jbrefort
Date: Sat Jan 12 15:15:30 2008
New Revision: 16269
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16269&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:
branches/gnumeric-1-8/plugins/excel/ChangeLog
branches/gnumeric-1-8/plugins/excel/ms-chart.c
Modified: branches/gnumeric-1-8/plugins/excel/ms-chart.c
==============================================================================
--- branches/gnumeric-1-8/plugins/excel/ms-chart.c (original)
+++ branches/gnumeric-1-8/plugins/excel/ms-chart.c Sat Jan 12 15:15:30 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]