]> git.lyx.org Git - features.git/commitdiff
2002-08-22 Martin Vermeer <martin.vermeer@hut.fi>
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 22 Aug 2002 07:46:47 +0000 (07:46 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 22 Aug 2002 07:46:47 +0000 (07:46 +0000)
* text2.C (setCounter):  fixed enumeration mis-count as reported by
Dr. Richard Hawkins.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5066 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text2.C

index daddf6064e7c9cf5baec84981fae5a89cc7fbc8c..05d993001de10d7537a9c2969d6ee0c95a332ef5 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-22  Martin Vermeer <martin.vermeer@hut.fi>
+
+       * text2.C (setCounter):  fixed enumeration mis-count as reported by 
+       Dr. Richard Hawkins.
+
 2002-08-21  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * paragraph_funcs.h: remove some unneeded includes
index 7268ca2e3aca3bed6434bc64fc1e00fa31dc5cf9..9d13ee2d5368d90eea5dfd83a7c6fa13e3ca76b7 100644 (file)
@@ -1371,7 +1371,7 @@ void LyXText::setCounter(Buffer const * buf, Paragraph * par) const
 
                // reset the enumeration counter. They are always resetted
                // when there is any other layout between
-               for (int i = par->enumdepth + 1; i < 4; i++) {
+               for (int i = par->enumdepth; i < 4; ++i) {
                        buf->counters().set(buf->counters().enums[i], 0);
                }
        }