summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/schema/qxsdschemahelper.cpp
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@digia.com>2013-10-08 10:14:22 +0200
committerSergio Ahumada <sergio.ahumada@digia.com>2013-10-08 10:14:38 +0200
commit9c1470888d8fa1dc3220ea411b8429bf8e9df688 (patch)
treeb99c8711ef3148c357c4b2b79f37cfd8e4181d64 /src/xmlpatterns/schema/qxsdschemahelper.cpp
parent4ff1e9aaad338778801f0e73290705d02192f579 (diff)
parent3c63cedb5d3defd831eb2d8bfdeb883121737ef3 (diff)
downloadqtxmlpatterns-9c1470888d8fa1dc3220ea411b8429bf8e9df688.tar.gz
Merge branch 'stable' into dev
Change-Id: Icbade3b8a1098b442dccb04c85c597e9c7adc423
Diffstat (limited to 'src/xmlpatterns/schema/qxsdschemahelper.cpp')
-rw-r--r--src/xmlpatterns/schema/qxsdschemahelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/schema/qxsdschemahelper.cpp b/src/xmlpatterns/schema/qxsdschemahelper.cpp
index 8072d92..c5e0ee0 100644
--- a/src/xmlpatterns/schema/qxsdschemahelper.cpp
+++ b/src/xmlpatterns/schema/qxsdschemahelper.cpp
@@ -635,7 +635,7 @@ bool XsdSchemaHelper::substitutionGroupOkTransitive(const XsdElement::Ptr &head,
NamedSchemaComponent::BlockingConstraints checkSet(blockSet);
checkSet |= head->disallowedSubstitutions();
- if (head->type()->isComplexType()) {
+ if (head->type()->isComplexType() && head->type()->isDefinedBySchema()) {
const XsdComplexType::Ptr complexType(head->type());
checkSet |= complexType->prohibitedSubstitutions();
}