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
This commit is contained in:
Abdelrazak Younes 2006-12-15 16:16:20 +00:00
parent 6bfb3e6dc4
commit b802e94208

View File

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