]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
Fixes to insettabular/text.
[lyx.git] / src / BufferView_pimpl.C
index bc6b57134808bcf755615f1698ffb75e7ff920d8..36dbfa07c3744369fb5bc1e43b0bedd0c5c6fcf6 100644 (file)
@@ -1136,7 +1136,7 @@ void BufferView::Pimpl::cursorPrevious()
 {
        if (!bv_->text->cursor.row()->previous()) return;
        
-       long y = bv_->text->first;
+       int y = bv_->text->first;
        Row * cursorrow = bv_->text->cursor.row();
        bv_->text->SetCursorFromCoordinates(bv_, bv_->text->cursor.x_fix(), y);
        bv_->text->FinishUndo();
@@ -1158,7 +1158,7 @@ void BufferView::Pimpl::cursorNext()
 {
        if (!bv_->text->cursor.row()->next()) return;
        
-       long y = bv_->text->first;
+       int y = bv_->text->first;
        bv_->text->GetRowNearY(y);
        Row * cursorrow = bv_->text->cursor.row();
        bv_->text->SetCursorFromCoordinates(bv_, bv_->text->cursor.x_fix(), y