From 1b39c1f7fea428e610ce051dca902dbf1f092476 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 13 Dec 2010 09:12:10 +0000 Subject: [PATCH] branch: Fix bug #7164: Text in tables not painted immediately. Fixes the regression introduced in r36679. see r36848. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@36862 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index 8cf2f8d221..070b529249 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -686,7 +686,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))