]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
fix crash when collapsing ert with cursor inside
[lyx.git] / src / BufferView_pimpl.C
index 2ed15ec3ceadf5bb93e0cf400275892437bd0f78..5b8a3b9415278c3906cc28a236330927175c84f7 100644 (file)
@@ -74,6 +74,7 @@
 #include "support/types.h"
 
 #include <boost/bind.hpp>
+#include <boost/current_function.hpp>
 
 #include <functional>
 #include <vector>
@@ -654,8 +655,7 @@ void BufferView::Pimpl::cursorToggle()
                // have finished but are waiting to communicate this fact
                // to the rest of LyX.
                ForkedcallsController & fcc = ForkedcallsController::get();
-               if (fcc.processesCompleted())
-                       fcc.handleCompletedProcesses();
+               fcc.handleCompletedProcesses();
        }
 
        cursor_timeout.restart();