From f041baca3aa3e328a5cc64a81507ec4a529bd39c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 24 Aug 2007 06:59:11 +0000 Subject: [PATCH] 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 --- src/frontends/WorkArea.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/WorkArea.cpp b/src/frontends/WorkArea.cpp index 3da4e4cfe6..b0155ba676 100644 --- a/src/frontends/WorkArea.cpp +++ b/src/frontends/WorkArea.cpp @@ -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); }