From 76ec27281b0e0331506d78ae4a932a262828d060 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 10 Feb 2008 19:18:57 +0000 Subject: [PATCH] * BufferView::putSelectionAt(): Ensure a redraw in any case. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22927 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 83ed752c78..47547dc94f 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1730,7 +1730,9 @@ void BufferView::putSelectionAt(DocIterator const & cur, } else d->cursor_.setSelection(d->cursor_, length); } - showCursor(); + // Ensure a redraw happens in any case because the new selection could + // possibly be on the same screen as the previous selection. + processUpdateFlags(Update::Force | Update::FitCursor); }