Minor code re-organization.

This commit is contained in:
Richard Heck 2017-10-27 11:50:51 -04:00
parent d8a31f1ee6
commit 400ee6824a

View File

@ -4926,13 +4926,14 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const
break; break;
} }
// Increase the master counter? if (needEnumCounterReset(it)) {
if (layout.stepmastercounter && needEnumCounterReset(it)) // Increase the master counter?
counters.stepMaster(enumcounter, utype); if (layout.stepmastercounter)
counters.stepMaster(enumcounter, utype);
// Maybe we have to reset the enumeration counter. // Maybe we have to reset the enumeration counter.
if (!layout.resumecounter && needEnumCounterReset(it)) if (!layout.resumecounter)
counters.reset(enumcounter); counters.reset(enumcounter);
}
counters.step(enumcounter, utype); counters.step(enumcounter, utype);
string const & lang = par.getParLanguage(bp)->code(); string const & lang = par.getParLanguage(bp)->code();