Fix recursive painting with Qt4.1 and add a comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19765 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-08-24 06:59:11 +00:00
parent 8518086ebe
commit f041baca3a

View File

@ -238,11 +238,11 @@ void WorkArea::dispatch(FuncRequest const & cmd0, key_modifier::state k)
void WorkArea::resizeBufferView()
{
// WARNING: Please don't put any code that will trigger a repaint here!
// We are already inside a paint event.
lyx_view_->busy(true);
lyx_view_->message(_("Formatting document..."));
buffer_view_->workAreaResize(width(), height());
lyx_view_->updateLayoutChoice();
lyx_view_->clearMessage();
lyx_view_->busy(false);
}