On Tue, Jan 29, 2002 at 04:53:40PM +0200, Martin Vermeer wrote:
> +             // Here we test if we have an inset in the label of a list
> +             // environment that really, really shouldn't be there. Like
> +             // graphics etc. But math, ERT, even footnote are OK.
> +             // These typically give latexing errors and are thus easy
> +             // to locate.
> +             if (env_label && new_warning && c == META_INSET) {
> +                     Inset::Code thisinset = getInset(i)->lyxCode();
> +                     bool problem_inset = 
> +                                                     (  thisinset == 
>Inset::GRAPHICS_CODE
> +                                                     || thisinset == 
>Inset::FLOAT_CODE
> +                                                     || thisinset == 
>Inset::MARGIN_CODE
> +                                                     || thisinset == 
>Inset::MINIPAGE_CODE);

Why don't you use virtual functions for stuff like this?

Andre'

-- 
André Pönitz .............................................. [EMAIL PROTECTED]

Reply via email to