summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Koenig <tokoe@kde.org>2009-05-19 16:59:30 (GMT)
committerTobias Koenig <tokoe@kde.org>2009-05-19 16:59:30 (GMT)
commitab5833178307fa9370868f61ff4cc7b18eb51fc0 (patch)
treee4c4b010566523d934bfb0e4465109ccc528a82f /src
parent317ab44d0c99fbc8b0a9f4136a107ad5d17e4539 (diff)
downloadQt-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.cpp3
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;
}