From b802e942088590d5d1d4080437048bf7f4323cd7 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 15 Dec 2006 16:16:20 +0000 Subject: [PATCH] Fix cursor repositioning when a Window is resized or when switching Windows showing the same Buffer (this bug was not visible if "Cursor follow mouse" was set). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16282 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.C | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BufferView.C b/src/BufferView.C index 3bb94f8d93..2730eea638 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -302,7 +302,7 @@ void BufferView::resize() lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION << endl; buffer_->text().init(this); - update(); + updateMetrics(false); switchKeyMap(); } @@ -1023,8 +1023,6 @@ void BufferView::workAreaResize(int width, int height) if (buffer_) resize(); - - update(); }