]> git.lyx.org Git - features.git/commitdiff
Fix bug #7071 in cutSelection:
authorAbdelrazak Younes <younes@lyx.org>
Sat, 4 Dec 2010 23:21:47 +0000 (23:21 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 4 Dec 2010 23:21:47 +0000 (23:21 +0000)
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.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36731 a592a061-630c-0410-9148-cb99ea01b6c8

src/CutAndPaste.cpp

index 9bed935d38eff7ec348cbb6ae179293b26bad45e..d4cf25ba1ff381cb6f1ae01646c0000289e9c83a 100644 (file)
@@ -784,7 +784,10 @@ void cutSelection(Cursor & cur, bool doclear, bool realcut)
 
                // 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);