]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Correct comment
[lyx.git] / src / BufferView.cpp
index 75d8a4e4348fd2fa34bb205bbee0e724cf24e2af..e75bc5e0b93f0a82b69df51b1ceb5b27ae5e2560 100644 (file)
@@ -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: "