]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/WorkArea.C
Fix bug 3101 and 3108
[lyx.git] / src / frontends / WorkArea.C
index cc9455c5999e8e944fd87df717f2c0107e7d9af4..135dd2071e259a00b61bb15cdb64f244b4200935 100644 (file)
 #include "rowpainter.h"
 
 #include "gettext.h"
-#include "support/filetools.h" // LibFileSearch
 #include "support/forkedcontr.h"
 
 #include <boost/utility.hpp>
 #include <boost/bind.hpp>
 #include <boost/current_function.hpp>
 
-using lyx::support::libFileSearch;
 using lyx::support::ForkedcallsController;
 
 using std::endl;
@@ -195,7 +193,7 @@ void WorkArea::dispatch(FuncRequest const & cmd0)
 
        theLyXFunc().setLyXView(&lyx_view_);
 
-       std::pair<bool, bool> needRedraw = buffer_view_->workAreaDispatch(cmd0);
+       bool needRedraw = buffer_view_->workAreaDispatch(cmd0);
 
        // Skip these when selecting
        if (cmd0.action != LFUN_MOUSE_MOTION) {
@@ -218,7 +216,7 @@ void WorkArea::dispatch(FuncRequest const & cmd0)
                toggleCursor();
        }
 
-       if (needRedraw.first)
+       if (needRedraw)
                redraw();
 }
 
@@ -229,7 +227,6 @@ void WorkArea::resizeBufferView()
        lyx_view_.message(_("Formatting document..."));
        buffer_view_->workAreaResize(width(), height());
        lyx_view_.updateLayoutChoice();
-       redraw();
        lyx_view_.busy(false);
        lyx_view_.clearMessage();
 }