summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/parser/qmaintainingreader_tpl_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/parser/qmaintainingreader_tpl_p.h')
-rw-r--r--src/xmlpatterns/parser/qmaintainingreader_tpl_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/parser/qmaintainingreader_tpl_p.h b/src/xmlpatterns/parser/qmaintainingreader_tpl_p.h
index e2c87cd..f650f2d 100644
--- a/src/xmlpatterns/parser/qmaintainingreader_tpl_p.h
+++ b/src/xmlpatterns/parser/qmaintainingreader_tpl_p.h
@@ -195,7 +195,7 @@ void MaintainingReader<TokenLookupClass, LookupKey>::validateElement(const Looku
formatKeyword(name()),
allowed.first());
}
- else if(totalCount == 1)
+ else if(totalCount == 2)
{
/* Note, allowed has already had formatKeyword() applied. */
translationString = QtXmlPatterns::tr("Attribute %1 cannot appear on the element %2. Allowed is %3, %4, and the standard attributes.")