]> git.lyx.org Git - features.git/commitdiff
dispatch also to BufferView (solve the problems reported by Kayvan)
authorAlfredo Braunstein <abraunst@lyx.org>
Fri, 14 Nov 2003 18:15:58 +0000 (18:15 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Fri, 14 Nov 2003 18:15:58 +0000 (18:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8088 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/cursor.C

index 7c6fd15d415e697273c6bdb883913bfcffd0f283..7fd5c873683e81624aa3c77f7c6b7f347acb286b 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-14  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * cursor.C (dispatch): dispatch to BufferView::dispatch at the end
+       of the path
+
 2003-11-14  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * lyxlayout.[Ch]: 
index 9b65c63a7f2f06d362144be33f4af32ca11c14ce..3f819f316e3c4e07e096dcf5f8c88b15dbb5a546 100644 (file)
@@ -104,6 +104,14 @@ DispatchResult LCursor::dispatch(FuncRequest const & cmd0)
        lyxerr << "trying to dispatch to main text " << bv_->text << endl;
        DispatchResult res = bv_->text->dispatch(cmd);
        lyxerr << "   result: " << res.val() << endl;
+
+       if (!res.dispatched()) {
+               lyxerr << "trying to dispatch to bv " << bv_ << endl;
+               bool sucess = bv_->dispatch(cmd);
+               lyxerr << "   result: " << sucess << endl;
+               res.dispatched(sucess);
+       }
+
        return res;
 }