mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Show cursor correctly whn loading file
This is a fixup to 8d8988de4
. When a file is loaded and the cursor is
set, it is required to first compute metrics to be able to scroll the
screen correctly.
Fixes bug #11377.
This commit is contained in:
parent
e9e3c50c65
commit
2dc84b69d5
@ -868,7 +868,7 @@ bool BufferView::moveToPosition(pit_type bottom_pit, pos_type bottom_pos,
|
||||
d->cursor_.setCurrentFont();
|
||||
// Do not forget to reset the anchor (see #9912)
|
||||
d->cursor_.resetAnchor();
|
||||
processUpdateFlags(Update::FitCursor);
|
||||
processUpdateFlags(Update::Force | Update::FitCursor);
|
||||
}
|
||||
|
||||
return success;
|
||||
|
Loading…
Reference in New Issue
Block a user