mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 03:23:12 +00:00
Potential fix for #7591.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38876 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d40fcdee23
commit
fe15a8f2a5
@ -669,7 +669,10 @@ void BufferView::setCursorFromScrollbar()
|
|||||||
// FIXME: Care about the d->cursor_ flags to redraw if needed
|
// FIXME: Care about the d->cursor_ flags to redraw if needed
|
||||||
Cursor old = d->cursor_;
|
Cursor old = d->cursor_;
|
||||||
mouseSetCursor(cur);
|
mouseSetCursor(cur);
|
||||||
bool badcursor = notifyCursorLeavesOrEnters(old, d->cursor_);
|
// the DEPM call in mouseSetCursor() might have destroyed the
|
||||||
|
// paragraph the cursor is in.
|
||||||
|
bool badcursor = old.fixIfBroken();
|
||||||
|
badcursor |= notifyCursorLeavesOrEnters(old, d->cursor_);
|
||||||
if (badcursor)
|
if (badcursor)
|
||||||
d->cursor_.fixIfBroken();
|
d->cursor_.fixIfBroken();
|
||||||
}
|
}
|
||||||
|
@ -98,6 +98,8 @@ What's new
|
|||||||
|
|
||||||
- Fixed crash with inverse search when document has changed (bug 7572).
|
- Fixed crash with inverse search when document has changed (bug 7572).
|
||||||
|
|
||||||
|
- Fixed crash when scrolling away from empty paragraph (bug 7591).
|
||||||
|
|
||||||
- Show the correct label after adding a line to an AMS Multline formula (bug
|
- Show the correct label after adding a line to an AMS Multline formula (bug
|
||||||
7511).
|
7511).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user