X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.cpp;h=e75bc5e0b93f0a82b69df51b1ceb5b27ae5e2560;hb=a8572c1358d5d2e66612e9f44329a6ffd33516a6;hp=75d8a4e4348fd2fa34bb205bbee0e724cf24e2af;hpb=d68f6f7f40442adb1e88629f1c6b92f5f7c02522;p=lyx.git diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 75d8a4e434..e75bc5e0b9 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -947,7 +947,7 @@ bool BufferView::scrollToCursor(DocIterator const & dit, bool const recenter) TextMetrics & tm = d->text_metrics_[bot.text()]; pos_type const max_pit = pos_type(bot.text()->paragraphs().size() - 1); - int bot_pit = bot.pit(); + pos_type bot_pit = bot.pit(); if (bot_pit > max_pit) { // FIXME: Why does this happen? LYXERR0("bottom pit is greater that max pit: "