From: Enrico Forestieri Date: Sun, 12 Jul 2009 10:52:28 +0000 (+0000) Subject: Fix bug #6063: Keylogger lyx::lyxbreaker: Crash in Math. X-Git-Tag: 2.0.0~6078 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d2e8e53bb1db324cf790c049af0c392a9def98c5;p=features.git Fix bug #6063: Keylogger lyx::lyxbreaker: Crash in Math. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30497 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiCompleter.cpp b/src/frontends/qt4/GuiCompleter.cpp index 884bde6d87..fa8f6f8187 100644 --- a/src/frontends/qt4/GuiCompleter.cpp +++ b/src/frontends/qt4/GuiCompleter.cpp @@ -313,6 +313,11 @@ void GuiCompleter::updateVisibility(Cursor & cur, bool start, bool keep, bool cu if (!inlineVisible() && possibleInlineState && start && cur.inset().automaticInlineCompletion()) inline_timer_.start(int(lyxrc.completion_inline_delay * 1000)); + else { + // no inline completion, hence a metrics update is needed + if (!(cur.disp_.update() & Update::Force)) + cur.updateFlags(cur.disp_.update() | Update::SinglePar); + } // update prefix if any completion is possible bool modelActive = modelActive_ && model()->rowCount() > 0;