aboutsummaryrefslogtreecommitdiff
path: root/xsde/cxx/parser/element-validation-source.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xsde/cxx/parser/element-validation-source.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 (