]> git.lyx.org Git - features.git/commitdiff
* BufferView::putSelectionAt(): Ensure a redraw in any case.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 10 Feb 2008 19:18:57 +0000 (19:18 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 10 Feb 2008 19:18:57 +0000 (19:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22927 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 83ed752c78d03159787c74467b28e46f1b134766..47547dc94fe5c176705f95373e899ca28169a09f 100644 (file)
@@ -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);
 }