]> git.lyx.org Git - features.git/commitdiff
* src/BufferView.C
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 5 Jan 2007 09:21:30 +0000 (09:21 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 5 Jan 2007 09:21:30 +0000 (09:21 +0000)
(BufferView::clearSelection): Trigger a redraw so that the cleared
selection becomes visible

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16524 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.C

index d5adcc3bf0e9733a355fa3e80da4900b179a08b5..38d9c4d5fc612f849c0a600022e9f873908ca89d 100644 (file)
@@ -1016,6 +1016,9 @@ void BufferView::clearSelection()
        if (buffer_) {
                cursor_.clearSelection();
                xsel_cache_.set = false;
+               // The buffer did not really change, but this causes the
+               // redraw we need because we cleared the selection above.
+               buffer_->changed();
        }
 }