The branch, 2.0.x, has been updated. - Log -----------------------------------------------------------------
commit dacab5cf7be53e474452ebb9880ae4338b22fdfb Author: Vincent van Ravesteijn <[email protected]> Date: Wed May 23 08:02:40 2012 +0200 Fix bug #8166: Crash on clicking away from empty last paragraph We always have to call 'notifyCursorLeaves', but we only have to make sure that we call the 'fixIfBroken()' functions first. (cherry picked from commit d20cb73b874a30b82fe01d3b8f385ef066fafedf) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index b0d3135..dda765e 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2171,8 +2171,8 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0) // Notify left insets if (cur != old) { - bool badcursor = old.fixIfBroken() | cur.fixIfBroken() - | notifyCursorLeavesOrEnters(old, cur); + bool badcursor = old.fixIfBroken() | cur.fixIfBroken(); + badcursor |= notifyCursorLeavesOrEnters(old, cur); if (badcursor) cursor().fixIfBroken(); } ----------------------------------------------------------------------- Summary of changes: src/BufferView.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- The LyX Source Repository
