summaryrefslogtreecommitdiff
path: root/src/plugins/xml/XmlParser.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-08 19:37:51 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-08 19:37:51 +0100
commit5eca67b6cab7031d8203b1403ba5cddaef833e76 (patch)
treeddb626aa00a0da75d038b08025e4c4fd7760ec5c /src/plugins/xml/XmlParser.cpp
parentc2b9597c49abeef3f333b1bf7221a51019d53668 (diff)
restructured the FieldDescriptor mechanism.
Diffstat (limited to 'src/plugins/xml/XmlParser.cpp')
-rw-r--r--src/plugins/xml/XmlParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/xml/XmlParser.cpp b/src/plugins/xml/XmlParser.cpp
index 4f956d5..6d77138 100644
--- a/src/plugins/xml/XmlParser.cpp
+++ b/src/plugins/xml/XmlParser.cpp
@@ -132,7 +132,8 @@ public:
// try to find a FieldDescriptor for the given tag if we are not in a
// field already.
- if (!inField && parent != nullptr && parent->hasField(name())) {
+ if (!inField && parent != nullptr &&
+ parent->getDescriptor()->hasField(name())) {
Rooted<DocumentField> field{new DocumentField(
parentNode->getManager(), fieldName, parentNode)};
field->setLocation(location());
@@ -1315,7 +1316,6 @@ static void xmlStartElementHandler(void *p, const XML_Char *name,
keyLoc.getStart());
args.emplace(key, value.second);
}
-
// Call the start function
std::string nameStr(name);