From: Abdelrazak Younes Date: Fri, 15 Dec 2006 16:16:20 +0000 (+0000) Subject: Fix cursor repositioning when a Window is resized or when switching Windows showing... X-Git-Tag: 1.6.10~11548 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b802e942088590d5d1d4080437048bf7f4323cd7;p=features.git 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 --- 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(); }