From 7285719a4b96c07bcd61a4b81d4df833c0457dcb Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 9 Dec 2010 18:05:28 +0000 Subject: [PATCH] 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 --- src/insets/InsetText.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 6e06198ce8..b1b2d0be92 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -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; }