On Thu, Oct 11, 2007 at 09:57:53AM -0000, [EMAIL PROTECTED] wrote:
> +
> +     Cursor * cur = view()? &view()->cursor(): 0;

        Cursor * cur = view() ? &view()->cursor() : 0;
>  
>       // I would really like to avoid having this switch and rather try to
>       // encode this in the function itself.
> @@ -503,12 +503,12 @@
>               break;
>  
>       case LFUN_LAYOUT_TABULAR:
> -             enable = cur.innerInsetOfType(Inset::TABULAR_CODE);
> +             enable = cur? cur->innerInsetOfType(Inset::TABULAR_CODE) : 
> false;
>               break;
>  
>       case LFUN_LAYOUT:
>       case LFUN_LAYOUT_PARAGRAPH:
> -             enable = !cur.inset().forceDefaultParagraphs(cur.idx());
> +             enable = cur? !cur->inset().forceDefaultParagraphs(cur->idx()) 
> : false;
>               break;

Also herr.

Reply via email to