Fix assertions when there is no document open and the LFUN is handled by GuiView::dispatch().

This was forgotten in r33258.

(also reported as bug #6484)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33275 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-30 15:12:44 +00:00
parent 971d1fb7a4
commit 01897c7013

View File

@ -532,6 +532,8 @@ void LyXFunc::dispatch(FuncRequest const & cmd, DispatchResult & dr)
// Let the current LyXView dispatch its own actions.
lv->dispatch(cmd, dr);
if (dr.dispatched())
break;
BufferView * bv = lv->currentBufferView();
LASSERT(bv, /**/);