]> git.lyx.org Git - features.git/commitdiff
Get rid of some unneeded use of LyXView in LyXFunc::dispatch().
authorAbdelrazak Younes <younes@lyx.org>
Sat, 26 Sep 2009 17:39:19 +0000 (17:39 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 26 Sep 2009 17:39:19 +0000 (17:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31470 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index 3f4bd1481e65abb086f426e4037e003b6775b9c9..05fbbb27b7a0e5c3d861933a21fdc33aaf4e8493 100644 (file)
@@ -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;