On Tuesday 08 January 2002 6:03 pm, John Levon wrote:
> Try the below patch. The ehaviour seems totally random: sometimes a 
fixed-width
> cell allows the dialog, sometimes it doesn't. I have NO idea why. Juergen, 
Angus,
> can you look please ?
> 
> thanks
> john
> 
> 
> Index: FormParagraph.C
> @@ -170,6 +193,15 @@ void FormParagraph::apply()
>      if (!lv_->view()->available() || !dialog_.get())
>       return;
>  
> +    par_ = getCurrentParagraph();
> + 
> +    if (par_->inInset() && 
par_->inInset()->forceDefaultParagraphs(par_->inInset())) {
> +        Alert::alert(_("Paragraph parameter changes not allowed"), 
> +             _("The parameters of this paragraph cannot be changed."));
> +        return;
> +    }

Actually, this looks suspicious. par_ is the pointer to the paragraph whose 
parameters originally filled the dialog. It should be reset only on a 
restore. I think you want:
        Paragraph const * p = getCurrentParagraph();
        ...
here, just as in changedParagraph.

Angus

Reply via email to