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:
Richard Heck 2011-05-28 14:36:50 +00:00
parent d40fcdee23
commit fe15a8f2a5
2 changed files with 6 additions and 1 deletions

View File

@ -669,7 +669,10 @@ void BufferView::setCursorFromScrollbar()
// FIXME: Care about the d->cursor_ flags to redraw if needed
Cursor old = d->cursor_;
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)
d->cursor_.fixIfBroken();
}

View File

@ -98,6 +98,8 @@ What's new
- 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
7511).