Commit 768ce45f authored by Jean Bréfort's avatar Jean Bréfort Committed by Jean Bréfort

initialize scale before using it [#332012].

2006-03-21  Jean Brefort  <jean.brefort@normalesup.org>

	* ms-chart.c: (chart_write_axis): initialize scale before
	using it [#332012].
parent 3123a53b
2006-03-21 Jean Brefort <jean.brefort@normalesup.org>
* ms-chart.c: (chart_write_axis): initialize scale before
using it [#332012].
2006-03-19 Jody Goldberg <jody@gnome.org>
* Release 1.6.3
......
......@@ -1012,6 +1012,12 @@ BC_R(gelframe) (XLChartHandler const *handle,
guint32 preset = ms_obj_attr_get_uint (attrs,
MS_OBJ_ATTR_FILL_PRESET, 0);
/* plot types we do not support that have gradients */
if (NULL == s->style) {
ms_obj_attr_bag_destroy (attrs);
return FALSE;
}
s->style->fill.type = GOG_FILL_STYLE_GRADIENT;
s->style->fill.pattern.fore =
ms_chart_map_color (s, fill_color, fill_alpha);
......@@ -3837,7 +3843,7 @@ chart_write_axis (XLChartWriteState *s, GogAxis const *axis,
* 80 == default date settings */
ms_biff_put_commit (s->bp);
} else {
char *const scale;
char *const scale = NULL;
gboolean log_scale = FALSE;
if (axis != NULL)
......
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