mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix two warnings in BufferView.
This commit is contained in:
parent
40f4da3c9f
commit
8ed8d36595
@ -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: "
|
||||
|
Loading…
Reference in New Issue
Block a user