From: Abdelrazak Younes Date: Sat, 4 Dec 2010 23:21:47 +0000 (+0000) Subject: Fix bug #7071 in cutSelection: X-Git-Tag: 2.0.0~1499 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=25fb104d7412879b17b5b35a1624842759311166;p=features.git 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 --- 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);