]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / BufferView.C
index 0386b2d0730984d9c0064ec55572afa6a8f64664..151d1154553daae676e6426ade0d22a301723576 100644 (file)
@@ -188,6 +188,10 @@ bool BufferView::isSavedPosition(unsigned int i)
        return pimpl_->isSavedPosition(i);
 }
 
+void BufferView::saveSavedPositions()
+{
+       return pimpl_->saveSavedPositions();
+}
 
 void BufferView::switchKeyMap()
 {
@@ -345,7 +349,7 @@ void BufferView::mouseSetCursor(LCursor & cur)
                cursor().text()->deleteEmptyParagraphMechanism(cur, cursor());
 
        cursor() = cur;
-       cursor().resetAnchor();
+       cursor().clearSelection();
        cursor().setTargetX();
        finishUndo();
 
@@ -369,6 +373,18 @@ void BufferView::putSelectionAt(DocIterator const & cur,
 }
 
 
+bool const BufferView::repaintAll() const
+{
+       return pimpl_->repaintAll();
+}
+
+
+void const BufferView::repaintAll(bool r) const
+{
+       pimpl_->repaintAll(r);
+}
+
+
 LCursor & BufferView::cursor()
 {
        return pimpl_->cursor_;