]> git.lyx.org Git - features.git/commitdiff
Fix crash reported by keytest.
authorRichard Heck <rgheck@comcast.net>
Thu, 2 Dec 2010 15:14:44 +0000 (15:14 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 2 Dec 2010 15:14:44 +0000 (15:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36657 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetText.cpp

index cba292832a4b0b35e1a06661040c342cf702c5cb..76d7d33a7a36008118b7637c95e08b1d4057ee0f 100644 (file)
@@ -659,7 +659,7 @@ void InsetText::updateBuffer(ParIterator const & it, UpdateType utype)
                //      tclass.counters().clearLastLayout()
                // since we are saving and restoring the existing counters, etc.
                Counters const savecnt = tclass.counters();
-               tclass.counters() = Counters();
+               tclass.counters().reset();
                buffer().updateBuffer(it2, utype);
                tclass.counters() = savecnt;
        }