diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-11-04 01:58:55 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-11-04 01:58:55 +0000 |
commit | 095dfe6b1a78ec4f18ec0b4b224d0b1c95a0006e (patch) | |
tree | 298a9bcf530e41d7c1f534b4acae8dc0bd9bb2c8 /lasso | |
parent | 7103e81888652aa46f28ee0aee29bbcc94c088b2 (diff) | |
download | lasso-095dfe6b1a78ec4f18ec0b4b224d0b1c95a0006e.tar.gz lasso-095dfe6b1a78ec4f18ec0b4b224d0b1c95a0006e.tar.xz lasso-095dfe6b1a78ec4f18ec0b4b224d0b1c95a0006e.zip |
Fix overwriting of attributes ht by node lists
- lasso/xml/xml.c:
- In lasso_node_impl_init_from_xml fix really old bug seen when
running ID-WSF 2 python tests, when looking for snippet_any
field in the GObject we should not take the any attribute field,
otherwise the field value is gonna be overwritten with new GList
nodes. The problem ca be seen only with classes using the two kind
of snippets (ANY nodes and ANY attributs).
Diffstat (limited to 'lasso')
-rw-r--r-- | lasso/xml/xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index f472c4b0..ac3f7ed7 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -1111,7 +1111,7 @@ lasso_node_impl_init_from_xml(LassoNode *node, xmlNode *xmlnode) type = snippet->type & 0xff; value = G_STRUCT_MEMBER_P(node, snippet->offset); - if (snippet->type & SNIPPET_ANY) { + if ((snippet->type & SNIPPET_ANY) && type != SNIPPET_ATTRIBUTE) { snippet_any = snippet; } |