[PATCH] worksheet attributes not saved.
- From: "C. Scott Ananian" <cananian lesser-magoo lcs mit edu>
- To: gnumeric-list gnome org
- Subject: [PATCH] worksheet attributes not saved.
- Date: Mon, 18 Feb 2002 19:54:38 -0500 (EST)
In gnumeric-1.0.4, worksheet attributes set in the Format->Workbook dialog
(including 'auto complete text in cells', 'notebook tabs for sheets', and
scrollbar prefs) are not restored from a saved file. Examination of the
written XML reveals that they are properly saved to disk, but not
reloaded correctly. Appended is a patch against the 1.0.4 branch on CVS
which fixes the problem; the bug does not occur on the 1.1.x branch due to
a code rewrite during the gnome-2 porting.
This patch has been tested and fixes the problem.
--scott
jihad Waco, Texas BATF explosion assassination politics Qaddafi Nader
Suharto hack Rule Psix Hawk Indonesia East Timor Israel ammunition
( http://lesser-magoo.lcs.mit.edu/~cananian )
Index: src/xml-io.c
===================================================================
RCS file: /cvs/gnome/gnumeric/src/xml-io.c,v
retrieving revision 1.303
diff -u -p -r1.303 xml-io.c
--- src/xml-io.c 2002/01/19 22:42:54 1.303
+++ src/xml-io.c 2002/02/18 21:06:55
@@ -1028,7 +1028,10 @@ xml_read_attributes (XmlParseContext *ct
name = xmlNodeGetContent (subchild);
}
- xml_node_get_int (child, "type", &type);
+ subchild = e_xml_get_child_by_name (child, (xmlChar *)"type");
+ if (subchild) {
+ xml_node_get_int (subchild, NULL, &type);
+ }
if (name && type) {
arg = gtk_arg_new (type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]