* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Jürgen Vigna
+ * \author Jürgen Vigna
*
* Full author contact details are available in file CREDITS.
*/
{
ParIterator it2 = it;
it2.forwardPos();
- LASSERT(&it2.inset() == this && it2.pit() == 0, /**/);
- if (producesOutput())
- lyx::updateLabels(buffer(), it2);
- else {
- DocumentClass const & tclass = buffer().params().documentClass();
+ LASSERT(&it2.inset() == this && it2.pit() == 0, return);
+ if (producesOutput()) {
+ buffer().updateLabels(it2);
+ } else {
+ DocumentClass const & tclass = buffer().masterBuffer()->params().documentClass();
Counters const savecnt = tclass.counters();
- lyx::updateLabels(buffer(), it2);
+ buffer().updateLabels(it2);
tclass.counters() = savecnt;
}
}