This patch moves the busy cursor and formatting messages from BufferView to WorkArea.

Will commit soon.

Abdel.
Index: BufferView_pimpl.C
===================================================================
--- BufferView_pimpl.C  (revision 14798)
+++ BufferView_pimpl.C  (working copy)
@@ -330,8 +330,6 @@
 void BufferView::Pimpl::resizeCurrentBuffer()
 {
        lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION << endl;
-       owner_->busy(true);
-       owner_->message(_("Formatting document..."));
 
        LyXText * text = bv_->text();
        if (!text)
@@ -339,12 +337,7 @@
 
        text->init(bv_);
        update();
-
        switchKeyMap();
-       owner_->busy(false);
-
-       // Reset the "Formatting..." message
-       owner_->clearMessage();
 }
 
 
@@ -532,7 +525,7 @@
        height_ = height;
 
        if (buffer_ && widthChange) {
-               // The visible LyXView need a resize
+               // The WorkArea content needs a resize
                resizeCurrentBuffer();
        }
 
Index: frontends/WorkArea.C
===================================================================
--- frontends/WorkArea.C        (revision 14787)
+++ frontends/WorkArea.C        (working copy)
@@ -42,6 +42,7 @@
 #include "graphics/GraphicsImage.h"
 #include "graphics/GraphicsLoader.h"
 
+#include "gettext.h"
 #include "support/filetools.h" // LibFileSearch
 #include "support/forkedcontr.h"
 
@@ -265,9 +266,13 @@
 
 void WorkArea::resizeBufferView()
 {
+       lyx_view_.busy(true);
+       lyx_view_.message(_("Formatting document..."));
        buffer_view_->workAreaResize(width(), height());
        lyx_view_.updateLayoutChoice();
        redraw();
+       lyx_view_.busy(false);
+       lyx_view_.clearMessage();
 }
 
 

Reply via email to