From 25fb104d7412879b17b5b35a1624842759311166 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 4 Dec 2010 23:21:47 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36731 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CutAndPaste.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 9bed935d38..d4cf25ba1f 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -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); -- 2.39.2