]> git.lyx.org Git - features.git/commitdiff
Fix crash reported by John Kennan.
authorRichard Heck <rgheck@comcast.net>
Mon, 9 May 2011 18:05:31 +0000 (18:05 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 9 May 2011 18:05:31 +0000 (18:05 +0000)
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/trunk@38667 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index 5462e90912596abff928aad9fa5341cac6b1acd5..39a87c517a9a4dd331c5fbffd5af8e97c0df9c02 100644 (file)
@@ -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());