[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Have a look.
This seems to fix the problem: (please verify)
? deptherror.diff ? deptherror.lyx ? kystskipper-a-1.lyx Index: src/text2.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v retrieving revision 1.470 diff -u -p -r1.470 text2.C --- src/text2.C 6 Oct 2003 15:42:40 -0000 1.470 +++ src/text2.C 7 Oct 2003 21:40:01 -0000 @@ -910,7 +910,7 @@ void LyXText::setCounter(Buffer const & && boost::prior(pit)->getDepth() > pit->getDepth() && layout->labeltype != LABEL_BIBLIO) { pit->enumdepth = depthHook(pit, ownerParagraphs(), - pit->getDepth())->enumdepth; + pit->getDepth())->enumdepth; } // erase what was there before @@ -938,7 +938,16 @@ void LyXText::setCounter(Buffer const & // bufparams.user_defined_bullet(pit->itemdepth).getText()); // for now, use a static label pit->params().labelString("*"); - textclass.counters().reset("enum"); + switch (pit->enumdepth) { + case 0: + textclass.counters().reset("enumi"); + case 1: + textclass.counters().reset("enumii"); + case 2: + textclass.counters().reset("enumiii"); + case 3: + textclass.counters().reset("enumiv"); + } } else if (layout->labeltype == LABEL_ENUMERATE) { // FIXME // Yes I know this is a really, really! bad solution
-- Lgb