]> git.lyx.org Git - lyx.git/commitdiff
Fix bugs #7165 (Auto-complete does not disappear after using it)
authorEnrico Forestieri <forenr@lyx.org>
Thu, 16 Dec 2010 08:14:27 +0000 (08:14 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 16 Dec 2010 08:14:27 +0000 (08:14 +0000)
and      #7174 (Math selection broken)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36902 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.cpp

index c11dc3b0d90d6963aba792df609ab20472cc6a46..fccb894c3f7870552b7934d152600c2665d214f5 100644 (file)
@@ -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()