Commit d6f3a4d5 authored by Morten Welinder's avatar Morten Welinder

.gnumeric: turn unparsable expressions into strings.

We have no good way out, but turning expressions into strings is less
lossy than dropping them on the floor.
parent 3ef330b4
2015-01-14 Morten Welinder <>
* src/xml-sax-read.c (xml_sax_cell_content): When we fail to parse
an expresssion, make it a string instead of dropping it on the
2015-01-13 Morten Welinder <>
* src/xml-sax-read.c (xml_sax_cell_content): When we discover a
......@@ -2086,17 +2086,17 @@ xml_sax_cell_content (GsfXMLIn *xin, G_GNUC_UNUSED GsfXMLBlob *blob)
if (texpr && cell) {
if (!texpr) {
g_warning ("Unparsable expression for %s: %s\n",
cell ? cell_name (cell) : "-",
texpr = gnm_expr_top_new_constant (value_new_string (expr_start));
if (cell) {
gnm_cell_set_expr (cell, texpr);
gnm_expr_top_unref (texpr);
} else if (texpr)
cc->texpr = texpr;
else {
g_warning ("Unparsable expression for %s: %s\n",
cell_name (cell),
gnm_cell_set_value (cell, value_new_string (content));
parse_error_free (&perr);
} else if (cell)
gnm_cell_set_text (cell, content);
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