On 04/12/2011 04:59 AM, Tommaso Cucinotta wrote:
Il 12/04/2011 02:23, Richard Heck ha scritto:
On 04/11/2011 06:15 PM, Tommaso Cucinotta wrote:
I guess that, at the end of findAndReplace() in lyxfind.cpp at line 1345, I'm missing something to update the previewed insets that have been affected by the replace operation. For now I have a

    bv->processUpdateFlags(Update::Force);

which is obviously insufficient.

Try bv->forceBufferUpdate(). Might work.

unfortunately it doesn't (see patch below). What else can I try ?

Actually, sorry, I have seen this same bug, too, now that I think about it.

I think you need to arrange somehow to call reloadPreview() on the math (and preview?) insets that have been changed. Right now that only gets called when the cursor exits the inset. Maybe you should collect them and then do it at the end?

Richard

Reply via email to