From: Vincent van Ravesteijn Date: Sun, 12 Dec 2010 20:56:01 +0000 (+0000) Subject: Fix bug #7164: Text in tables not painted immediately. X-Git-Tag: 2.0.0~1397 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1f76d67c662872789b461b1d3b9fac9f1a4dc3c7;p=features.git Fix bug #7164: Text in tables not painted immediately. 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 --- diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index a63c7ea143..d694892f53 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -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))