mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
Bugfix: the current cursor font was not reset when going to a bookmark.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19770 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eb931956a8
commit
2d8a0710eb
@ -546,6 +546,7 @@ boost::tuple<pit_type, pos_type, int> BufferView::moveToPosition(pit_type bottom
|
||||
break;
|
||||
}
|
||||
setCursor(dit);
|
||||
buffer_->text().setCurrentFont(cursor_);
|
||||
// Note: return bottom (document) level pit.
|
||||
return boost::make_tuple(cursor_.bottom().pit(), cursor_.bottom().pos(), top_id);
|
||||
}
|
||||
@ -561,6 +562,7 @@ boost::tuple<pit_type, pos_type, int> BufferView::moveToPosition(pit_type bottom
|
||||
it.pit() = bottom_pit;
|
||||
it.pos() = min(bottom_pos, it.paragraph().size());
|
||||
setCursor(it);
|
||||
buffer_->text().setCurrentFont(cursor_);
|
||||
return boost::make_tuple(it.pit(), it.pos(),
|
||||
it.paragraph().id());
|
||||
}
|
||||
|
@ -244,7 +244,6 @@ bool LyXView::loadLyXFile(FileName const & filename, bool tolastfiles,
|
||||
if (work_area_->bufferView().moveToPosition(pit, pos, 0, 0).get<1>()) {
|
||||
if (work_area_->bufferView().fitCursor())
|
||||
work_area_->bufferView().updateMetrics(false);
|
||||
newBuffer->text().setCurrentFont(work_area_->bufferView().cursor());
|
||||
updateMenubar();
|
||||
updateToolbars();
|
||||
updateLayoutChoice();
|
||||
|
@ -80,6 +80,8 @@ What's new
|
||||
|
||||
- Fix crash when using down cursor in an empty math subscript (Bug 4117).
|
||||
|
||||
- Reset current cursor font when going to a bookmark.
|
||||
|
||||
* DOCUMENTATION
|
||||
|
||||
- Fix installation links for Hebrew (bug 4165)
|
||||
|
Loading…
Reference in New Issue
Block a user