mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
#7969 verify cursor position when spell check is done
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40550 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6f0cc0cecd
commit
70d4c1d774
@ -284,6 +284,8 @@ void SpellcheckerWidget::Private::hide() const
|
|||||||
// restore cursor position
|
// restore cursor position
|
||||||
bvcur.setCursor(start_);
|
bvcur.setCursor(start_);
|
||||||
bvcur.clearSelection();
|
bvcur.clearSelection();
|
||||||
|
// spell checker may have started at (invalid) empty paragraph at end
|
||||||
|
bvcur.fixIfBroken();
|
||||||
bv->processUpdateFlags(Update::Force | Update::FitCursor);
|
bv->processUpdateFlags(Update::Force | Update::FitCursor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user