From de7964e501f65c1893f909ee20d3825fe49085af Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 30 Nov 2010 15:10:31 +0000 Subject: [PATCH] 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 --- src/rowpainter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2