Commit f67f3323 authored by Morten Welinder's avatar Morten Welinder

.gnumeric: fix reading of anchor mode.

Attribute parsing follows a different template here.  That tripped
me up and we never saw the anchor mode.
parent 9fcbba84
2015-04-04 Morten Welinder <>
* src/xml-sax-read.c (xml_sax_read_obj): Fix reading anchor mode.
Fixes #747356.
* src/xml-sax-write.c (xml_write_objects): Save only relevant
parts of the cell bound.
......@@ -2398,7 +2398,7 @@ xml_sax_read_obj (GsfXMLIn *xin, gboolean needs_cleanup,
for (i = 0; attrs != NULL && attrs[i] && attrs[i + 1] ; i += 2) {
if (attr_eq (attrs[i], "Name"))
sheet_object_set_name (so, CXML2C (attrs[i + 1]));
else if (xml_sax_attr_enum (attrs, "AnchorMode", GNM_SHEET_OBJECT_ANCHOR_MODE_TYPE, &tmp_int))
else if (xml_sax_attr_enum (attrs + i, "AnchorMode", GNM_SHEET_OBJECT_ANCHOR_MODE_TYPE, &tmp_int))
anchor_mode = tmp_int;
else if (attr_eq (attrs[i], "ObjectBound"))
range_parse (&anchor_r, CXML2C (attrs[i + 1]), gnm_sheet_get_size (state->sheet));
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