]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
redraw fix 1.
[lyx.git] / src / BufferView2.C
index fb7c29762da5137bc16ff119a6c82eabc50df4f6..5624b2b324c762619b9cea3f04e736728c86067a 100644 (file)
@@ -576,7 +576,7 @@ void BufferView::showLockedInsetCursor(int x, int y, int asc, int desc)
                                ? LyXScreen::REVERSED_L_SHAPE
                                : LyXScreen::L_SHAPE;
                y += cursor.iy() + theLockingInset()->insetInInsetY();
-               pimpl_->screen_->showManualCursor(text, x, y, asc, desc,
+               screen().showManualCursor(text, x, y, asc, desc,
                                                  shape);
        }
 }
@@ -585,7 +585,7 @@ void BufferView::showLockedInsetCursor(int x, int y, int asc, int desc)
 void BufferView::hideLockedInsetCursor()
 {
        if (theLockingInset() && available()) {
-               pimpl_->screen_->hideCursor();
+               screen().hideCursor();
        }
 }
 
@@ -594,7 +594,7 @@ bool BufferView::fitLockedInsetCursor(int x, int y, int asc, int desc)
 {
        if (theLockingInset() && available()) {
                y += text->cursor.iy() + theLockingInset()->insetInInsetY();
-               if (pimpl_->screen_->fitManualCursor(text, this, x, y, asc, desc)) {
+               if (screen().fitManualCursor(this, text, x, y, asc, desc)) {
                        updateScrollbar();
                        return true;
                }
@@ -611,7 +611,7 @@ int BufferView::unlockInset(UpdatableInset * inset)
                inset->insetUnlock(this);
                theLockingInset(0);
                // make sure we update the combo !
-               owner()->setLayout(getLyXText()->cursor.par()->layout());
+               owner()->setLayout(getLyXText()->cursor.par()->layout()->name());
                // Tell the paragraph dialog that we changed paragraph
                owner()->getDialogs()->updateParagraph();
                finishUndo();