On Thu, Sep 05, 2002 at 12:11:39PM +0300, Martin Vermeer wrote:

> I suspect that your statement 
> 
>  buf->counters().reset("enum");
> 
> may be too simple. Remember the non-standard pre-increment :-)

Do it like this:

        // reset the enumeration counter. They are always resetted
        // when there is any other layout between
        switch (par->enumdepth) {
                case 0:
                buf->counters().reset("enumi");
                case 1:
                buf->counters().reset("enumii");
                case 2:
                buf->counters().reset("enumiii");
                case 3:
                buf->counters().reset("enumiv");
        }

Verified to work.

Martin

Attachment: msg44089/pgp00000.pgp
Description: PGP signature

Reply via email to