gnumeric r17273 - in trunk: . src
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r17273 - in trunk: . src
- Date: Wed, 1 Apr 2009 14:10:07 +0000 (UTC)
Author: mortenw
Date: Wed Apr 1 14:10:07 2009
New Revision: 17273
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17273&view=rev
Log:
2009-04-01 Morten Welinder <terra gnome org>
* src/xml-sax-read.c (xml_sax_wb_sheetsize): Set the right
attribute.
Modified:
trunk/ChangeLog
trunk/src/xml-sax-read.c
Modified: trunk/src/xml-sax-read.c
==============================================================================
--- trunk/src/xml-sax-read.c (original)
+++ trunk/src/xml-sax-read.c Wed Apr 1 14:10:07 2009
@@ -478,7 +478,7 @@
for (; attrs != NULL && attrs[0] && attrs[1] ; attrs += 2) {
if (gnm_xml_attr_int (attrs, "gnm:Cols", &state->sheet_cols))
; /* Nothing more */
- else if (gnm_xml_attr_int (attrs, "gnm:Rows", &state->sheet_cols))
+ else if (gnm_xml_attr_int (attrs, "gnm:Rows", &state->sheet_rows))
; /* Nothing more */
else
unknown_attr (xin, attrs);
@@ -490,14 +490,16 @@
{
XMLSaxParseState *state = (XMLSaxParseState *)xin->user_state;
char const *name = xin->content->str;
+ Workbook *wb = state->wb;
g_return_if_fail (name != NULL);
- if (NULL == workbook_sheet_by_name (state->wb, name))
- workbook_sheet_attach (state->wb,
- sheet_new_with_size (state->wb, name,
- state->sheet_cols,
- state->sheet_rows));
+ if (NULL == workbook_sheet_by_name (wb, name)) {
+ Sheet *sheet = sheet_new_with_size (wb, name,
+ state->sheet_cols,
+ state->sheet_rows);
+ workbook_sheet_attach (wb, sheet);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]