diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 5ee6410efc..b8d54129ed 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -546,6 +546,7 @@ boost::tuple 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 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()); } diff --git a/src/frontends/LyXView.cpp b/src/frontends/LyXView.cpp index 773231394d..a12d8b1ea0 100644 --- a/src/frontends/LyXView.cpp +++ b/src/frontends/LyXView.cpp @@ -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(); diff --git a/status.15x b/status.15x index b16a97e72b..5cc3ebb34b 100644 --- a/status.15x +++ b/status.15x @@ -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)