This should fix bug #7161. It backports r36651.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36790 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-12-09 18:05:28 +00:00
parent 98ca5e2997
commit 7285719a4b

View File

@ -483,7 +483,7 @@ void InsetText::updateLabels(ParIterator const & it)
else {
DocumentClass const & tclass = buffer().masterBuffer()->params().documentClass();
Counters const savecnt = tclass.counters();
tclass.counters() = Counters();
tclass.counters().reset();
lyx::updateLabels(buffer(), it2);
tclass.counters() = savecnt;
}