Commit 637064d7 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

Set the cell value to empty instead of an empty string.

2000-01-01  Miguel de Icaza  <miguel@gnu.org>

	* src/xml-io.c (xml_read_cell): Set the cell value to empty
	instead of an empty string.
parent 33f83b80
2000-01-01 Miguel de Icaza <miguel@gnu.org>
* src/xml-io.c (xml_read_cell): Set the cell value to empty
instead of an empty string.
* src/cell.c (cell_set_text): Add warning if cell_set_text is
invoked with the empty string.
......
2000-01-01 Miguel de Icaza <miguel@gnu.org>
* src/xml-io.c (xml_read_cell): Set the cell value to empty
instead of an empty string.
* src/cell.c (cell_set_text): Add warning if cell_set_text is
invoked with the empty string.
......
......@@ -1526,7 +1526,8 @@ xml_write_cell (parse_xml_context_t *ctxt, Cell *cell)
text = cell_get_content (cell);
tstr = xmlEncodeEntitiesReentrant (ctxt->doc, text);
xmlNewChild (cur, ctxt->ns, "Content", tstr);
if (tstr) xmlFree (tstr);
if (tstr)
xmlFree (tstr);
g_free (text);
text = cell_get_comment(cell);
......@@ -1644,8 +1645,9 @@ xml_read_cell (parse_xml_context_t *ctxt, xmlNodePtr tree)
OPER_ARRAY != ret->parsed_node->oper)
cell_set_text_simple (ret, content);
xmlFree (content);
} else
cell_set_text_simple (ret, "");
} else {
cell_set_value (ret, value_new_empty ());
}
cell_deep_thaw_redraws ();
/* cell_deep_thaw_dependencies (); */
......
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