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); } }