mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
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:
parent
6bfb3e6dc4
commit
b802e94208
@ -302,7 +302,7 @@ void BufferView::resize()
|
|||||||
lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION << endl;
|
lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION << endl;
|
||||||
|
|
||||||
buffer_->text().init(this);
|
buffer_->text().init(this);
|
||||||
update();
|
updateMetrics(false);
|
||||||
switchKeyMap();
|
switchKeyMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1023,8 +1023,6 @@ void BufferView::workAreaResize(int width, int height)
|
|||||||
|
|
||||||
if (buffer_)
|
if (buffer_)
|
||||||
resize();
|
resize();
|
||||||
|
|
||||||
update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user