I can't reproduce this. I even tried inline-in command from buffer.

One point is, if you have older versions of toc stuff (pre 18265) and apply
this patch, it is possible to get such errors *I have tested and found
some). Are you sure that you have cleanly updated to the current svn?

I will re-send the patch with your comments applied, after coding the
proposed solution of Abdel.

Ugras

On 5/15/07, Jürgen Spitzmüller <[EMAIL PROTECTED]> wrote:

Ozgur Ugras BARAN wrote:
> strange.. nobody complained the code below..
>
> +
>
moveInTB->setEnabled(form_->allowDemoteCurrentItem(typeCO->currentIndex())
> &&
> + moveOutTB->isEnabled()); //means controls are
> enabled.

I do ;-) (comments above the code please). And please stick to LyX's
conventions wrt line length and spacing, i.e.

        return (kernel().buffer().params().tocdepth
                - (*getCurrentTocItem(type)).depth() + 1) > 0;

Most importantly, though, your patches crashes LyX for me on demoting over
the
limit:

/usr/include/c++/4.1.2/debug/safe_iterator.h:181:error: attempt to
    dereference a past-the-end iterator.

Objects involved in the operation:
iterator "this" @ 0x0x7fffc5bbabf0 {
type =

N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPKN3lyx7TocItemEN10__gnu_norm6vectorIS4_SaIS4_EEEEEN15__gnu_debug_def6vectorIS4_S9_EEEE
(constant iterator);
  state = past-the-end;
  references sequence with type
`N15__gnu_debug_def6vectorIN3lyx7TocItemESaIS2_EEE' @ 0x0x7fffc5bbabf0
}


Jürgen

Reply via email to