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

handle references to deleted sheets.


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

	* ms-excel-read.c (ms_excel_externsheet_v8) : handle references to
	  deleted sheets.
parent 2b002e74
2002-04-21 Jody Goldberg <jody@gnome.org>
* ms-excel-read.c (ms_excel_externsheet_v8) : handle references to
deleted sheets.
* ms-escher.c (ms_escher_read_Blip) : remove some debug cruft.
2002-04-15 Jon K Hellan <hellan@acm.org>
......
......@@ -4391,11 +4391,13 @@ ms_excel_externsheet_v8 (BiffQuery const *q, ExcelWorkbook *ewb)
sup_index, first, last););
if (sup_index >= 0) {
if (first != 0xfffe || last != 0xfffe) {
first_sheet = workbook_sheet_by_index (ewb->gnum_wb, first);
last_sheet = workbook_sheet_by_index (ewb->gnum_wb, last);
} else /* record for local names */
first_sheet = last_sheet = NULL;
/* 0xffff == deleted, 0xfffe record for local names */
first_sheet = (first < 0xfffe)
? workbook_sheet_by_index (ewb->gnum_wb, first)
: NULL;
last_sheet = (last < 0xfffe)
? workbook_sheet_by_index (ewb->gnum_wb, last)
: NULL;
} else {
first_sheet = last_sheet = NULL;
g_warning ("external references not supported yet.");
......
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