On 05/12/2010 00:21, you...@lyx.org wrote:
Author: younes
Date: Sun Dec  5 00:21:47 2010
New Revision: 36731
URL: http://www.lyx.org/trac/changeset/36731

Log:
Fix bug #7071 in cutSelection:
After a cut operation, we need to make sure that the Buffer is updated
because some further operation will need updated label information for
example. So we cannot just use "cur.forceBufferUpdate()" here.

Richard,

You might double-check that as you are the forceBufferUpdat() architect AFAIR.

Abdel.

Modified:
    lyx-devel/trunk/src/CutAndPaste.cpp

Modified: lyx-devel/trunk/src/CutAndPaste.cpp
==============================================================================
--- lyx-devel/trunk/src/CutAndPaste.cpp Sun Dec  5 00:20:38 2010        (r36730)
+++ lyx-devel/trunk/src/CutAndPaste.cpp Sun Dec  5 00:21:47 2010        (r36731)
@@ -784,7 +784,10 @@

                // need a valid cursor. (Lgb)
                cur.clearSelection();
-               cur.forceBufferUpdate();
+               // After a cut operation, we need to make sure that the Buffer 
is updated
+               // because some further operation will need updated label 
information for
+               // example. So we cannot just use "cur.forceBufferUpdate()" 
here.
+               cur.buffer()->updateBuffer();

                // tell tabular that a recent copy happened
                dirtyTabularStack(false);

Reply via email to