From 1e1f53a2ccab74e08447b0ee6be18dc309882e10 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Fri, 14 Nov 2003 18:15:58 +0000 Subject: [PATCH] dispatch also to BufferView (solve the problems reported by Kayvan) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8088 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/cursor.C | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 7c6fd15d41..7fd5c87368 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-11-14 Alfredo Braunstein + + * cursor.C (dispatch): dispatch to BufferView::dispatch at the end + of the path + 2003-11-14 Martin Vermeer * lyxlayout.[Ch]: diff --git a/src/cursor.C b/src/cursor.C index 9b65c63a7f..3f819f316e 100644 --- a/src/cursor.C +++ b/src/cursor.C @@ -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; } -- 2.39.2