mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug #8166: Crash on clicking away from empty last paragraph
This reverts the previous fix in [0a33374c/lyxgit] and fixes it differently. We always have to call 'notifyCursorLeaves', but we only have to make sure that we call the 'fixIfBroken()' functions first.
This commit is contained in:
parent
0a33374c0d
commit
d20cb73b87
@ -2201,8 +2201,8 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
|
|||||||
|
|
||||||
// Notify left insets
|
// Notify left insets
|
||||||
if (cur != old) {
|
if (cur != old) {
|
||||||
bool badcursor = old.fixIfBroken() || cur.fixIfBroken()
|
bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
|
||||||
|| notifyCursorLeavesOrEnters(old, cur);
|
badcursor |= notifyCursorLeavesOrEnters(old, cur);
|
||||||
if (badcursor)
|
if (badcursor)
|
||||||
cursor().fixIfBroken();
|
cursor().fixIfBroken();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user