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 ?

Thx,

    T.

Index: src/lyxfind.cpp
===================================================================
--- src/lyxfind.cpp    (revisione 38338)
+++ src/lyxfind.cpp    (copia locale)
@@ -1343,6 +1343,7 @@
LYXERR(Debug::FIND, "Putting selection at cur=" << cur << " with len: " << sel_len);
     bv->putSelectionAt(DocIterator(cur), sel_len, !opt.forward);
     bv->processUpdateFlags(Update::Force);
+    cur.forceBufferUpdate();
 }

Reply via email to