Commit b6f108a5 authored by JodyGoldberg's avatar JodyGoldberg Committed by Jody Goldberg
Browse files

xml_node_get_bool returns TRUE on success. Only set the value if we have


2005-10-10  Jody Goldberg <jody@gnome.org>

	* src/xml-io.c (xml_sheet_read) : xml_node_get_bool returns TRUE on
	  success.  Only set the value if we have one.  The other code is
	  reading directly into the value and setting it to a constant on
	  failure.
parent ea33a634
......@@ -4,6 +4,13 @@
Fixes #318419.
Handle empty csv files sanely.
2005-10-10 Jody Goldberg <jody@gnome.org>
* src/xml-io.c (xml_sheet_read) : xml_node_get_bool returns TRUE on
success. Only set the value if we have one. The other code is
reading directly into the value and setting it to a constant on
failure.
2005-10-10 Jody Goldberg <jody@gnome.org>
* configure.in : post release bump
......
......@@ -4,6 +4,13 @@
Fixes #318419.
Handle empty csv files sanely.
2005-10-10 Jody Goldberg <jody@gnome.org>
* src/xml-io.c (xml_sheet_read) : xml_node_get_bool returns TRUE on
success. Only set the value if we have one. The other code is
reading directly into the value and setting it to a constant on
failure.
2005-10-10 Jody Goldberg <jody@gnome.org>
* configure.in : post release bump
......
......@@ -3114,11 +3114,11 @@ xml_sheet_read (XmlParseContext *ctxt, xmlNodePtr tree)
sheet->hide_col_header = FALSE;
if (!xml_node_get_bool (tree, "HideRowHeader", &(sheet->hide_row_header)))
sheet->hide_row_header = FALSE;
if (!xml_node_get_bool (tree, "DisplayOutlines", &tmp))
if (xml_node_get_bool (tree, "DisplayOutlines", &tmp))
g_object_set (sheet, "display-outlines", tmp, NULL);
if (!xml_node_get_bool (tree, "OutlineSymbolsBelow", &tmp))
if (xml_node_get_bool (tree, "OutlineSymbolsBelow", &tmp))
g_object_set (sheet, "display-outlines-below", tmp, NULL);
if (!xml_node_get_bool (tree, "OutlineSymbolsRight", &tmp))
if (xml_node_get_bool (tree, "OutlineSymbolsRight", &tmp))
g_object_set (sheet, "display-outlines-right", tmp, NULL);
if (xml_node_get_bool (tree, "RTL_Layout", &tmp))
g_object_set (sheet, "text-is-rtl", tmp, NULL);
......
Supports Markdown
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