mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
Fix bug #6552: Crash when inserting TeX-code in math mode and scrolling
Avoid an assertion when accessing the CoordCache while the Inset is in a paragraph which is not visible on screen. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33582 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6d671bf5f2
commit
834115c920
@ -422,7 +422,8 @@ void GuiCompleter::updatePopup(Cursor & cur)
|
||||
void GuiCompleter::asyncUpdatePopup()
|
||||
{
|
||||
Cursor cur = gui_->bufferView().cursor();
|
||||
if (!cur.inset().completionSupported(cur)) {
|
||||
if (!cur.inset().completionSupported(cur)
|
||||
|| !cur.bv().paragraphVisible(cur)) {
|
||||
popupVisible_ = false;
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user