From: Enrico Forestieri Date: Thu, 16 Dec 2010 08:14:27 +0000 (+0000) Subject: Fix bugs #7165 (Auto-complete does not disappear after using it) X-Git-Tag: 2.0.0~1356 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cf85f9ce69700c79b7e237e9d9971bb9a19c90d1;p=lyx.git Fix bugs #7165 (Auto-complete does not disappear after using it) and #7174 (Math selection broken) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36902 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index c11dc3b0d9..fccb894c3f 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -752,8 +752,9 @@ void RowPainter::paintOnlyInsets() for (pos_type pos = row_.pos(); pos != end; ++pos) { // If outer row has changed, nested insets are repaint completely. Inset const * inset = par_.getInset(pos); - bool const nested_inset = inset && - (inset->asInsetText() || inset->asInsetTabular()); + bool const nested_inset = inset && (inset->inMathed() || + inset->asInsetText() || + inset->asInsetTabular()); if (!nested_inset) continue; if (x_ > pi_.base.bv->workWidth()