From: Vincent van Ravesteijn Date: Tue, 30 Nov 2010 15:10:31 +0000 (+0000) Subject: Fix bug #4889: Painting problem with some insets. RowPainter::paintOnlyInsets is... X-Git-Tag: 2.0.0~1587 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=de7964e501f65c1893f909ee20d3825fe49085af;p=features.git Fix bug #4889: Painting problem with some insets. RowPainter::paintOnlyInsets is only meant to paint nested Insets, so I guess only the InsetText based insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36630 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index d7e05593b8..cbcee32577 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -742,7 +742,7 @@ 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) + if (!inset || !inset->asInsetText()) continue; if (x_ > pi_.base.bv->workWidth() || !cache.getInsets().has(inset))