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:
Vincent van Ravesteijn 2010-02-26 15:59:08 +00:00
parent 6d671bf5f2
commit 834115c920

View File

@ -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;
}