]> git.lyx.org Git - features.git/commitdiff
Fix bug #7164: Text in tables not painted immediately.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 12 Dec 2010 20:56:01 +0000 (20:56 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 12 Dec 2010 20:56:01 +0000 (20:56 +0000)
Fixes the regression introduces in r36630. I already fixed this, but forgot to commit apparently.

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

src/rowpainter.cpp

index a63c7ea143e9b6964972a2f06ee8917504efd3cb..d694892f534498a3681eefe0ba923cbdc4f48bfa 100644 (file)
@@ -742,7 +742,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);
-               if (!inset || !inset->asInsetText())
+               bool const nested_inset = inset &&
+                       (inset->asInsetText() || inset->asInsetTabular());
+               if (!nested_inset)
                        continue;
                if (x_ > pi_.base.bv->workWidth()
                    || !cache.getInsets().has(inset))