Do not dispatch in BV when no buffer. Andre, please review.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5147 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-08-28 23:56:05 +00:00
parent d8f9ca8c9c
commit 5ef09542a2
2 changed files with 9 additions and 0 deletions

View File

@ -903,6 +903,10 @@ bool BufferView::Pimpl::dispatch(FuncRequest const & ev)
<< " button[" << ev.button() << "]" << " button[" << ev.button() << "]"
<< endl; << endl;
// e.g. Qt mouse press when no buffer
if (!buffer_)
return false;
LyXTextClass const & tclass = buffer_->params.getLyXTextClass(); LyXTextClass const & tclass = buffer_->params.getLyXTextClass();
switch (ev.action) { switch (ev.action) {

View File

@ -1,3 +1,8 @@
2002-08-29 John Levon <levon@movementarian.org>
* BufferView_pimpl.C (dispatch): do not continue when
no buffer
2002-08-28 André Pönitz <poenitz@gmx.net> 2002-08-28 André Pönitz <poenitz@gmx.net>
* commandtags.h: new LFUN_MOUSE_DOUBLE, LFUN_MOUSE_TRIPLE * commandtags.h: new LFUN_MOUSE_DOUBLE, LFUN_MOUSE_TRIPLE