diff options
author | Tobias Koenig <tokoe@kde.org> | 2009-05-19 16:59:30 (GMT) |
---|---|---|
committer | Tobias Koenig <tokoe@kde.org> | 2009-05-19 16:59:30 (GMT) |
commit | ab5833178307fa9370868f61ff4cc7b18eb51fc0 (patch) | |
tree | e4c4b010566523d934bfb0e4465109ccc528a82f /src | |
parent | 317ab44d0c99fbc8b0a9f4136a107ad5d17e4539 (diff) | |
download | Qt-ab5833178307fa9370868f61ff4cc7b18eb51fc0.zip Qt-ab5833178307fa9370868f61ff4cc7b18eb51fc0.tar.gz Qt-ab5833178307fa9370868f61ff4cc7b18eb51fc0.tar.bz2 |
Forward errors from QXmlStreamReader to XsdSchemaParser
(missed this commit on the first merge, autotest works again)
Diffstat (limited to 'src')
-rw-r--r-- | src/xmlpatterns/schema/qxsdschemaparser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmlpatterns/schema/qxsdschemaparser.cpp b/src/xmlpatterns/schema/qxsdschemaparser.cpp index 3cd21af..b74964d 100644 --- a/src/xmlpatterns/schema/qxsdschemaparser.cpp +++ b/src/xmlpatterns/schema/qxsdschemaparser.cpp @@ -290,6 +290,9 @@ bool XsdSchemaParser::parse(ParserType parserType) m_schemaResolver->addComponentLocationHash(m_componentLocationHash); m_schemaResolver->setDefaultOpenContent(m_defaultOpenContent, m_defaultOpenContentAppliesToEmpty); + if (QXmlStreamReader::error() != QXmlStreamReader::NoError) + error(errorString()); + return true; } |