]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
the spellcheck cleanup
[lyx.git] / src / BufferView_pimpl.C
index 0b56147b05a1353466f1e40f828e7ddff0507dfb..93b49159fe9775986ec819ab1233c8076758e89a 100644 (file)
@@ -25,6 +25,7 @@
 #include "bufferparams.h"
 #include "cursor.h"
 #include "debug.h"
+#include "dispatchresult.h"
 #include "factory.h"
 #include "FloatList.h"
 #include "funcrequest.h"
@@ -417,8 +418,6 @@ void BufferView::Pimpl::resizeCurrentBuffer()
                bv_->text->fullRebreak();
                update();
        } else {
-               lyxerr << "text not available!" << endl;
-                       lyxerr << "no text in cache!" << endl;
                        bv_->text = new LyXText(bv_, 0, false, bv_->buffer()->paragraphs());
                        bv_->text->init(bv_);
        }
@@ -1140,7 +1139,7 @@ bool BufferView::Pimpl::dispatch(FuncRequest const & ev_in)
                        // Note that the localDispatch performs updateInset
                        // also.
                        FuncRequest fr(bv_, LFUN_INSET_MODIFY, ev.argument);
-                       inset->localDispatch(fr);
+                       inset->dispatch(fr);
                } else {
                        FuncRequest fr(bv_, LFUN_INSET_INSERT, ev.argument);
                        dispatch(fr);
@@ -1278,7 +1277,7 @@ bool BufferView::Pimpl::dispatch(FuncRequest const & ev_in)
                break;
 
        default:
-               return bv_->getLyXText()->dispatch(FuncRequest(ev, bv_));
+               return bv_->getLyXText()->dispatch(FuncRequest(ev, bv_)).dispatched();
        } // end of switch
 
        return true;
@@ -1323,8 +1322,7 @@ bool BufferView::Pimpl::insertInset(InsetOld * inset, string const & lout)
 
                bv_->text->setLayout(lay);
 
-               bv_->text->setParagraph(0, 0,
-                                  0, 0,
+               bv_->text->setParagraph(
                                   VSpace(VSpace::NONE), VSpace(VSpace::NONE),
                                   Spacing(),
                                   LYX_ALIGN_LAYOUT,