aboutsummaryrefslogtreecommitdiff
path: root/xsde/cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-04-11 17:11:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-04-11 17:11:48 +0200
commita980038ec34a7f552d9dffd171ffcc4799e4f6d0 (patch)
tree18002e50ce800a0afca6baf0a4db9d881ed32747 /xsde/cxx
parent45c31a649ea6c334577bca293350affdfdc819c2 (diff)
Use the max cardinality value of the actual compositor
Diffstat (limited to 'xsde/cxx')
-rw-r--r--xsde/cxx/parser/element-validation-source.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xsde/cxx/parser/element-validation-source.cxx b/xsde/cxx/parser/element-validation-source.cxx
index a7a433a..8a23e28 100644
--- a/xsde/cxx/parser/element-validation-source.cxx
+++ b/xsde/cxx/parser/element-validation-source.cxx
@@ -785,7 +785,7 @@ namespace CXX
// it contains optional particle) and maxOccurs > 1. We need
// to call the next callback.
//
- if (ps->min () != 0 && max != 1 &&
+ if (ps->min () != 0 && ps->max () != 1 &&
ps->context ().get<UnsignedLong> ("p:effective-min") == 0)
{
UnsignedLong state (
@@ -1098,7 +1098,7 @@ namespace CXX
// it contains optional particle) and maxOccurs > 1. We need
// to call the next callback.
//
- if (ps->min () != 0 && max != 1 &&
+ if (ps->min () != 0 && ps->max () != 1 &&
ps->context ().get<UnsignedLong> ("p:effective-min") == 0)
{
UnsignedLong state (
@@ -1677,7 +1677,7 @@ namespace CXX
// it contains optional particle) and maxOccurs > 1. We need
// to call the next callback.
//
- if (ps->min () != 0 && max != 1 &&
+ if (ps->min () != 0 && ps->max () != 1 &&
ps->context ().get<UnsignedLong> ("p:effective-min") == 0)
{
UnsignedLong state (