From 2d8a0710eb8dee1d820006f8c982d4563d5047a4 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 24 Aug 2007 13:53:45 +0000 Subject: [PATCH] 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 --- src/BufferView.cpp | 2 ++ src/frontends/LyXView.cpp | 1 - status.15x | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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)