mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +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)
|
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());
|
||||||
|
Loading…
Reference in New Issue
Block a user