From b9beccdc6540d1922926282255ec2e615778b006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 22 Aug 2002 07:46:47 +0000 Subject: [PATCH] 2002-08-22 Martin Vermeer * 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 | 5 +++++ src/text2.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index daddf6064e..05d993001d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-08-22 Martin Vermeer + + * text2.C (setCounter): fixed enumeration mis-count as reported by + Dr. Richard Hawkins. + 2002-08-21 Lars Gullik Bjønnes * paragraph_funcs.h: remove some unneeded includes diff --git a/src/text2.C b/src/text2.C index 7268ca2e3a..9d13ee2d53 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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); } }