mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Fix assertion on Ctrl-N with Qt4.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29473 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
728380c06f
commit
695385374f
@ -272,6 +272,9 @@ void GuiWorkArea::init()
|
||||
}
|
||||
|
||||
screen_ = QPixmap(viewport()->width(), viewport()->height());
|
||||
// With Qt4.5 a mouse event will happen before the first paint event
|
||||
// so make sure that the buffer view has an up to date metrics.
|
||||
buffer_view_->resize(viewport()->width(), viewport()->height());
|
||||
cursor_ = new frontend::CursorWidget();
|
||||
cursor_->hide();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user