On Friday 06 September 2002 1:03 pm, Lars Gullik Bjønnes wrote: > | Try this: > | > | 1) Load a document, any document, as long as it contains chapter headers. > | 2) Close the doc. Do NOT exit LyX. > | 3) Open the same doc again. > > Ok, the following update seems to fix that problem. > If you have time, please look at it again.
Why no break statements? Is it intended that you reset all 4 enumix for par->enumdepth==0? If so, a comment wouldn't hurt... Angus @@ -1394,13 +1393,13 @@ void LyXText::setCounter(Buffer const * // when there is any other layout between switch (par->enumdepth) { case 0: - buf->counters().reset("enumi"); + textclass.counters().reset("enumi"); case 1: - buf->counters().reset("enumii"); + textclass.counters().reset("enumii"); case 2: - buf->counters().reset("enumiii"); + textclass.counters().reset("enumiii"); case 3: - buf->counters().reset("enumiv"); + textclass.counters().reset("enumiv"); } } }