gnumeric r16350 - branches/gnumeric-1-8/plugins/excel
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16350 - branches/gnumeric-1-8/plugins/excel
- Date: Tue, 5 Feb 2008 03:30:24 +0000 (GMT)
Author: mortenw
Date: Tue Feb 5 03:30:24 2008
New Revision: 16350
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16350&view=rev
Log:
Even more checks backported.
Modified:
branches/gnumeric-1-8/plugins/excel/ms-excel-read.c
Modified: branches/gnumeric-1-8/plugins/excel/ms-excel-read.c
==============================================================================
--- branches/gnumeric-1-8/plugins/excel/ms-excel-read.c (original)
+++ branches/gnumeric-1-8/plugins/excel/ms-excel-read.c Tue Feb 5 03:30:24 2008
@@ -4306,7 +4306,7 @@
mstyle = excel_get_style_from_xf (esheet, xf);
if (mstyle != NULL)
sheet_style_set_pos (esheet->sheet, col, row, mstyle);
- if (xf->is_simple_format)
+ if (xf && xf->is_simple_format)
value_set_fmt (v, xf->style_format);
cell = sheet_cell_fetch (esheet->sheet, col, row);
if (cell)
@@ -5668,6 +5668,19 @@
g_ptr_array_add (container->v7.externsheets, sheet);
}
+static void
+excel_read_EXTERNSHEET (BiffQuery const *q, GnmXLImporter *importer,
+ const MsBiffBofData *ver)
+{
+ XL_CHECK_CONDITION (ver != NULL);
+
+ if (ver->version >= MS_BIFF_V8)
+ excel_read_EXTERNSHEET_v8 (q, importer);
+ else
+ excel_read_EXTERNSHEET_v7 (q, &importer->container);
+}
+
+
/* FILEPASS, ask the user for a password if necessary
* return value is an error string, or NULL for success
*/
@@ -6522,10 +6535,7 @@
case BIFF_EXTERNCOUNT: /* ignore */ break;
case BIFF_EXTERNSHEET:
- if (ver->version >= MS_BIFF_V8)
- excel_read_EXTERNSHEET_v8 (q, importer);
- else
- excel_read_EXTERNSHEET_v7 (q, &importer->container);
+ excel_read_EXTERNSHEET (q, importer, ver);
break;
case BIFF_PRECISION : {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]