From 5ef09542a24611863f2acf8734bf4b686c1d25b3 Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 28 Aug 2002 23:56:05 +0000 Subject: [PATCH] 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 --- src/BufferView_pimpl.C | 4 ++++ src/ChangeLog | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index 5b20865439..b4a81751a2 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -903,6 +903,10 @@ bool BufferView::Pimpl::dispatch(FuncRequest const & ev) << " button[" << ev.button() << "]" << endl; + // e.g. Qt mouse press when no buffer + if (!buffer_) + return false; + LyXTextClass const & tclass = buffer_->params.getLyXTextClass(); switch (ev.action) { diff --git a/src/ChangeLog b/src/ChangeLog index 69bd7f322e..c0abfd4abc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-08-29 John Levon + + * BufferView_pimpl.C (dispatch): do not continue when + no buffer + 2002-08-28 André Pönitz * commandtags.h: new LFUN_MOUSE_DOUBLE, LFUN_MOUSE_TRIPLE