From 834115c920d826a69b73132d2b11bdd87dfc4bf0 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Fri, 26 Feb 2010 15:59:08 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiCompleter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiCompleter.cpp b/src/frontends/qt4/GuiCompleter.cpp index cadca7994a..0c51b6da41 100644 --- a/src/frontends/qt4/GuiCompleter.cpp +++ b/src/frontends/qt4/GuiCompleter.cpp @@ -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; } -- 2.39.2