mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Code reformatting.
This commit is contained in:
parent
a30607f3f4
commit
9a2b8c87cd
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user