Commit d21ddfbf authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

more protection for missing series.

2002-01-04  Jody Goldberg <jody@gnome.org>

	* dialog-graph-guru.c (vector_state_fill) : more protection for
	  missing series.

	* ms-chart.c (excel_chart_series_write_xml) : more protection for
	  missing series.

	* src/gnumeric-graph.c (gnm_graph_series_get_dimension) : more
	  protection for missing series.
	(gnm_graph_series_add_dimension) : ditto.
parent d29563a1
2002-01-04 Jody Goldberg <jody@gnome.org>
* src/gnumeric-graph.c (gnm_graph_series_get_dimension) : more
protection for missing series.
(gnm_graph_series_add_dimension) : ditto.
2002-01-03 Morten Welinder <terra@diku.dk>
* src/datetime.c (datetime_serial_to_timet): New function.
......
2002-01-04 Jody Goldberg <jody@gnome.org>
* src/gnumeric-graph.c (gnm_graph_series_get_dimension) : more
protection for missing series.
(gnm_graph_series_add_dimension) : ditto.
2002-01-03 Morten Welinder <terra@diku.dk>
* src/datetime.c (datetime_serial_to_timet): New function.
......
2002-01-04 Jody Goldberg <jody@gnome.org>
* src/gnumeric-graph.c (gnm_graph_series_get_dimension) : more
protection for missing series.
(gnm_graph_series_add_dimension) : ditto.
2002-01-03 Morten Welinder <terra@diku.dk>
* src/datetime.c (datetime_serial_to_timet): New function.
......
2002-01-04 Jody Goldberg <jody@gnome.org>
* src/gnumeric-graph.c (gnm_graph_series_get_dimension) : more
protection for missing series.
(gnm_graph_series_add_dimension) : ditto.
2002-01-03 Morten Welinder <terra@diku.dk>
* src/datetime.c (datetime_serial_to_timet): New function.
......
2002-01-04 Jody Goldberg <jody@gnome.org>
* ms-chart.c (excel_chart_series_write_xml) : more protection for
missing series.
2001-12-31 Jody Goldberg <jody@gnome.org>
* Release 1.0.0
......
......@@ -157,11 +157,11 @@ excel_chart_series_write_xml (ExcelChartSeries *series,
for (i = 0 ; i < MS_VECTOR_PURPOSE_MAX; i++ )
if (series->vector [i].remote_ID >= 0) {
#ifdef ENABLE_BONOBO
xmlNode * v;
v = gnm_graph_series_add_dimension (series->xml,
xmlNode *v = gnm_graph_series_add_dimension (series->xml,
ms_vector_purpose_type_name [i]);
e_xml_set_integer_prop_by_name (v, "ID",
series->vector [i].remote_ID);
if (v != NULL)
e_xml_set_integer_prop_by_name (v, "ID",
series->vector [i].remote_ID);
#endif
}
}
......
2002-01-04 Jody Goldberg <jody@gnome.org>
* dialog-graph-guru.c (vector_state_fill) : more protection for
missing series.
2002-01-04 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-analysis-tools.c (anova_two_factor_tool_ok_clicked_cb) :
......
......@@ -292,6 +292,7 @@ vector_state_fill (VectorState *vs, xmlNode *series)
int id;
g_return_if_fail (!vs->state->updating);
g_return_if_fail (series);
/* clear beforehand to make error handling simpler */
vs->series_index =
......@@ -550,6 +551,8 @@ graph_guru_select_series (GraphGuruState *s, xmlNode *series)
int i;
char *name;
g_return_if_fail (series != NULL);
if (s->updating)
return;
......
......@@ -1154,6 +1154,8 @@ gnm_graph_series_get_dimension (xmlNode *series, xmlChar const *target)
xmlNode *dim;
xmlChar *dim_name;
g_return_if_fail (series != NULL, NULL);
/* attempt to find the matching dimension */
for (dim = series->xmlChildrenNode; dim; dim = dim->next) {
if (strcmp (dim->name, "Dimension"))
......@@ -1181,7 +1183,11 @@ gnm_graph_series_get_dimension (xmlNode *series, xmlChar const *target)
xmlNode *
gnm_graph_series_add_dimension (xmlNode *series, char const *dim_name)
{
xmlNode *res = xmlNewChild (series, series->ns, "Dimension", NULL);
xmlNode *res;
g_return_if_fail (series != NULL, NULL);
res = xmlNewChild (series, series->ns, "Dimension", NULL);
xmlSetProp (res, "dim_name", dim_name);
return res;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment