Code reformatting.

This commit is contained in:
Jean-Marc Lasgouttes 2021-03-10 10:41:49 +01:00
parent a30607f3f4
commit 9a2b8c87cd

View File

@ -984,15 +984,14 @@ void BufferView::scrollToCursor()
bool BufferView::scrollToCursor(DocIterator const & dit, bool const recenter)
{
// We are not properly started yet, delay until resizing is
// done.
// We are not properly started yet, delay until resizing is done.
if (height_ == 0)
return false;
if (recenter)
LYXERR(Debug::SCROLLING, "recentering and scrolling to cursor");
LYXERR(Debug::SCROLLING, "recentering and scrolling to cursor");
else
LYXERR(Debug::SCROLLING, "scrolling to cursor");
LYXERR(Debug::SCROLLING, "scrolling to cursor");
CursorSlice const & bot = dit.bottom();
TextMetrics & tm = textMetrics(bot.text());