]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
more changes, read the Changelog
[lyx.git] / src / BufferView2.C
index ac40f726276e3f23ea41c54c4718cbcc0b94a541..0e56648dcb479f6ce57ba960450e9c6709e3a05d 100644 (file)
@@ -571,7 +571,7 @@ void BufferView::pasteEnvironment()
 void BufferView::copy()
 {
        if (available()) {
-               text->CopySelection(buffer());
+               text->CopySelection(this);
                // clear the selection, even if mark_set
                toggleSelection();
                text->ClearSelection();
@@ -745,8 +745,8 @@ void BufferView::showLockedInsetCursor(long x, long y, int asc, int desc)
                        text->SetCursor(this, cursor,
                                        cursor.par(), cursor.pos() - 1);
                y += cursor.y() + the_locking_inset->InsetInInsetY();
-               pimpl_->screen->ShowManualCursor(x, y, asc, desc,
-                                        LyXScreen::BAR_SHAPE);
+               pimpl_->screen_->ShowManualCursor(text, x, y, asc, desc,
+                                                 LyXScreen::BAR_SHAPE);
        }
 }
 
@@ -754,7 +754,7 @@ void BufferView::showLockedInsetCursor(long x, long y, int asc, int desc)
 void BufferView::hideLockedInsetCursor()
 {
        if (the_locking_inset && available()) {
-               pimpl_->screen->HideCursor();
+               pimpl_->screen_->HideCursor();
        }
 }
 
@@ -763,7 +763,7 @@ void BufferView::fitLockedInsetCursor(long x, long y, int asc, int desc)
 {
        if (the_locking_inset && available()){
                y += text->cursor.y() + the_locking_inset->InsetInInsetY();
-               if (pimpl_->screen->FitManualCursor(x, y, asc, desc))
+               if (pimpl_->screen_->FitManualCursor(text, x, y, asc, desc))
                        updateScrollbar();
        }
 }