From 16c5138508ef0f388bd3357549791a64c35055f9 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 26 Sep 2009 17:39:19 +0000 Subject: [PATCH] Get rid of some unneeded use of LyXView in LyXFunc::dispatch(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31470 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXFunc.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index 3f4bd1481e..05fbbb27b7 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -533,12 +533,10 @@ void LyXFunc::dispatch(FuncRequest const & cmd) switch (action) { case LFUN_COMMAND_PREFIX: - LASSERT(lv, /**/); - lv->message(keyseq.printOptions(true)); + dispatch(FuncRequest(LFUN_MESSAGE, keyseq.printOptions(true))); break; case LFUN_CANCEL: - LASSERT(lv && lv->currentBufferView(), /**/); keyseq.reset(); meta_fake_bit = NoModifier; if (buffer) @@ -572,7 +570,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd) break; case LFUN_CURSOR_FOLLOWS_SCROLLBAR_TOGGLE: - LASSERT(lv, /**/); lyxrc.cursor_follows_scrollbar = !lyxrc.cursor_follows_scrollbar; break;