Commit 08618806 authored by Jody Goldberg's avatar Jody Goldberg

Handle invalid format indicies.

parent 5de10d8f
......@@ -4,6 +4,7 @@
(gnumeric_chart_new) : Create.
* ms-chart.c (ms_excel_chart) : Init the chart.
(BC_R(ifmt), BC_R(ai)) : Handle invalid/missing formats.
* ms-escher.c : More radical changes to support just in time
merging. This seems to solve the last of the problems of which
......
......@@ -139,7 +139,8 @@ BC_R(ai)(ExcelChartHandler const *handle,
guint16 const length = MS_OLE_GET_GUINT16 (q->data + 6);
StyleFormat * fmt = biff_format_data_lookup (s->wb, fmt_index);
printf ("Format = '%s';\n", fmt->format);
if (fmt != NULL)
printf ("Format = '%s';\n", fmt->format);
switch (id) {
case 0 : puts ("Linking title or text"); break;
......@@ -877,7 +878,8 @@ BC_R(ifmt)(ExcelChartHandler const *handle,
guint16 const fmt_index = MS_OLE_GET_GUINT16 (q->data);
StyleFormat * fmt = biff_format_data_lookup (s->wb, fmt_index);
printf ("Format = '%s';\n", fmt->format);
if (fmt != NULL)
printf ("Format = '%s';\n", fmt->format);
return FALSE;
}
......
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