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:
Abdelrazak Younes 2007-08-24 13:53:45 +00:00
parent eb931956a8
commit 2d8a0710eb
3 changed files with 4 additions and 1 deletions

View File

@ -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());
}

View File

@ -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();

View File

@ -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)