From 1a724c2c3c148ca35dc11ee782b0e9b903de7b16 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 9 May 2011 18:23:54 +0000 Subject: [PATCH] Fix crash reported by John Kennan. We are missing the updateBuffer() call when we go through mouseEventDispatch(). A consequence of the massive updateBuffer() refactoring. Wish it had been caught before... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38669 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 5462e90912..39a87c517a 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2086,6 +2086,11 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0) // Do we have a selection? theSelection().haveSelection(cursor().selection()); + if (cur.needBufferUpdate()) { + cur.clearBufferUpdate(); + buffer().updateBuffer(); + } + // If the command has been dispatched, if (cur.result().dispatched() || cur.result().screenUpdate()) processUpdateFlags(cur.result().screenUpdate()); -- 2.39.5