On Friday 02 August 2002 11:30 am, Andre Poenitz wrote:
> On Fri, Aug 02, 2002 at 10:54:17AM +0100, Angus Leeming wrote:
> > André,
> >
> > if I edit a mathed inset and then leave it, a new preview is not
> > generated because this is returning false:
>
> How did you leave the inset?

by pressing the right arrow key, the space bar or the escape key, or by using 
the mouse. In all cases I get !previewWanted().

> > bool InsetFormula::PreviewImpl::previewWanted() const
> > {
> >     return !parent().par_->asNestInset()->editing();
> > }
> >
> > ie, the thing thinks its editing still. Have you changed anything
> > recently that might cause this?
>
> Hm... nothing that I can think of. asNestInset()->editing() is true if the
> mathcursor exists _and_ the cursor path passes through the inset. So I
> can't imagine how it can think it is editing if you've left the inset.

Yes, I've looked at the code in editing().

> On second thoughts, maybe the math cursor does not get destroyed if the
> inset is left...

that would indeed bugger it up ;-)

> Is there some equivalent to the edit() that gets called when an inset is
> left?

You've lost me. What are you talking about?

Angus

Reply via email to