]> git.lyx.org Git - features.git/commitdiff
Fix http://bugzilla.lyx.org/show_bug.cgi?id=4954
authorAbdelrazak Younes <younes@lyx.org>
Fri, 20 Jun 2008 11:57:43 +0000 (11:57 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 20 Jun 2008 11:57:43 +0000 (11:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25335 a592a061-630c-0410-9148-cb99ea01b6c8

src/CutAndPaste.cpp

index ac634a6d2dfc96a5dca1b29fdf35636cfc79e6f0..9a89cf5b59ecdc994c7f6c66c740568a0dd3589e 100644 (file)
@@ -621,6 +621,9 @@ void cutSelection(Cursor & cur, bool doclear, bool realcut)
                                cur.selectionAsString(true));
                }
 
+               if (begpit != endpit)
+                       cur.updateFlags(Update::Force | Update::FitCursor);
+
                boost::tie(endpit, endpos) =
                        eraseSelectionHelper(bp,
                                text->paragraphs(),