From 668d0f8c3f8e8179dff2c61ad8f92dde1f5f8b71 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 9 Feb 2010 14:26:59 +0000 Subject: [PATCH] do not use theLyXFunc() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33385 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index d567f6b7dc..c9fb198eb0 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1341,9 +1341,9 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) dr.update(Update::Force | Update::FitCursor); } else { // Switch to other buffer view and resend cmd - theLyXFunc().dispatch(FuncRequest( + lyx::dispatch(FuncRequest( LFUN_BUFFER_SWITCH, b->absFileName())); - theLyXFunc().dispatch(cmd); + lyx::dispatch(cmd); } break; } @@ -1458,7 +1458,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) if (cmd.argument().empty() && !d->search_request_cache_.argument().empty()) req = d->search_request_cache_; if (req.argument().empty()) { - theLyXFunc().dispatch(FuncRequest(LFUN_DIALOG_SHOW, "findreplace")); + lyx::dispatch(FuncRequest(LFUN_DIALOG_SHOW, "findreplace")); break; } if (find(this, req))