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
This commit is contained in:
Abdelrazak Younes 2009-09-26 17:39:19 +00:00
parent e80a46ba4f
commit 16c5138508

View File

@ -533,12 +533,10 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
switch (action) { switch (action) {
case LFUN_COMMAND_PREFIX: case LFUN_COMMAND_PREFIX:
LASSERT(lv, /**/); dispatch(FuncRequest(LFUN_MESSAGE, keyseq.printOptions(true)));
lv->message(keyseq.printOptions(true));
break; break;
case LFUN_CANCEL: case LFUN_CANCEL:
LASSERT(lv && lv->currentBufferView(), /**/);
keyseq.reset(); keyseq.reset();
meta_fake_bit = NoModifier; meta_fake_bit = NoModifier;
if (buffer) if (buffer)
@ -572,7 +570,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
break; break;
case LFUN_CURSOR_FOLLOWS_SCROLLBAR_TOGGLE: case LFUN_CURSOR_FOLLOWS_SCROLLBAR_TOGGLE:
LASSERT(lv, /**/);
lyxrc.cursor_follows_scrollbar = !lyxrc.cursor_follows_scrollbar; lyxrc.cursor_follows_scrollbar = !lyxrc.cursor_follows_scrollbar;
break; break;