summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-27 08:33:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-27 10:27:02 +0200
commit9d9f9939bd1bd0f599f4461c30b6433aa92cb101 (patch)
treef94e177f007e2a9ce49fddbe109c1eb014160828 /configmgr
parenteac87fed20206377c5354eac6beccb90bb43ef20 (diff)
Fixed previous configmgr layer numbering fix.
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/xcuparser.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/configmgr/source/xcuparser.cxx b/configmgr/source/xcuparser.cxx
index 4746bcf9300a..7d5a2a734d55 100644
--- a/configmgr/source/xcuparser.cxx
+++ b/configmgr/source/xcuparser.cxx
@@ -1109,7 +1109,8 @@ void XcuParser::handleSetNode(xmlreader::XmlReader & reader, SetNode * set) {
bool known = i != set->getMembers().end();
if (known && !state_.top().locked &&
finalizedLayer >= valueParser_.getLayer() &&
- (!mandatory || mandatoryLayer > valueParser_.getLayer()))
+ (mandatoryLayer == Data::NO_LAYER ||
+ mandatoryLayer > valueParser_.getLayer()))
{
set->getMembers().erase(i);
}