Fixed previous configmgr layer numbering fix.

This commit is contained in:
Stephan Bergmann 2011-10-27 08:33:55 +02:00
parent eac87fed20
commit 9d9f9939bd

View File

@ -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);
}