Commit 83b2554f authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder
Browse files

Fix loading of boolean constants from ods files.

2006-01-20  Morten Welinder  <terra@gnome.org>

	* openoffice-read.c (oo_cell_start): Fix loading of boolean
	constants from ods files.
parent 60280b26
......@@ -30,6 +30,7 @@ Morten:
* Fix text-to-columns crash probably affecting stf import too.
* Fix font preference crash. [#326830]
* Fix memory allocation problem for writing charts.
* Fix loading of boolean constants from ods files.
Jon Kåre:
* Hand clipboard off to clipboard manager when exiting.
......
2006-01-20 Morten Welinder <terra@gnome.org>
* openoffice-read.c (oo_cell_start): Fix loading of boolean
constants from ods files.
2005-11-16 Jody Goldberg <jody@gnome.org>
* openoffice-read.c : Some minor polish
......
......@@ -566,12 +566,16 @@ oo_cell_start (GsfXMLIn *xin, xmlChar const **attrs)
expr = oo_expr_parse_str (expr_string,
&state->pos, 0, &perr);
if (expr == NULL) {
g_print ("s=[%s]\n", expr_string);
g_print ("e=[%s]\n", perr.err->message);
oo_warning (xin, _("Unable to parse\n\t'%s'\nbecause '%s'"),
attrs[1], perr.err->message);
parse_error_free (&perr);
}
}
} else if (oo_attr_bool (xin, attrs, OO_NS_TABLE, "boolean-value", &bool_val))
} else if (oo_attr_bool (xin, attrs,
(state->ver == OOO_VER_OPENDOC) ? OO_NS_OFFICE : OO_NS_TABLE,
"boolean-value", &bool_val))
val = value_new_bool (bool_val);
else if (gsf_xml_in_namecmp (xin, attrs[0],
(state->ver == OOO_VER_OPENDOC) ? OO_NS_OFFICE : OO_NS_TABLE,
......
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