Commit 9ca20183 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Use a better default in the face of errors.

2001-10-29  Jody Goldberg <jgoldberg@home.com>

	* ms-excel-read.c (ms_excel_get_xf) : Use a better default in the face
	  of errors.
parent 2246b378
2001-10-29 Jody Goldberg <jgoldberg@home.com>
* ms-excel-read.c (ms_excel_get_xf) : Use a better default in the face
of errors.
* ms-chart.c (chart_get_fmt) : new function to chain to parent.
(ms_excel_chart) : use it here.
......
......@@ -1090,7 +1090,7 @@ ms_excel_get_xf (ExcelSheet *esheet, int xfidx)
g_return_val_if_fail (p != NULL, NULL);
if (0 > xfidx || xfidx >= (int)p->len) {
g_warning ("XL: Xf index 0x%X is not in the range[0..0x%X)", xfidx, p->len);
return NULL;
xfidx = 0;
}
xf = g_ptr_array_index (p, xfidx);
......
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