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) bool BufferView::scrollToCursor(DocIterator const & dit, bool const recenter)
{ {
// We are not properly started yet, delay until resizing is // We are not properly started yet, delay until resizing is done.
// done.
if (height_ == 0) if (height_ == 0)
return false; return false;
if (recenter) if (recenter)
LYXERR(Debug::SCROLLING, "recentering and scrolling to cursor"); LYXERR(Debug::SCROLLING, "recentering and scrolling to cursor");
else else
LYXERR(Debug::SCROLLING, "scrolling to cursor"); LYXERR(Debug::SCROLLING, "scrolling to cursor");
CursorSlice const & bot = dit.bottom(); CursorSlice const & bot = dit.bottom();
TextMetrics & tm = textMetrics(bot.text()); TextMetrics & tm = textMetrics(bot.text());