]> git.lyx.org Git - features.git/commitdiff
Fix bug #4889: Painting problem with some insets. RowPainter::paintOnlyInsets is...
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 30 Nov 2010 15:10:31 +0000 (15:10 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 30 Nov 2010 15:10:31 +0000 (15:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36630 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.cpp

index d7e05593b88e3b1d83301be8f78cf3f5119b7078..cbcee32577f067a23049ca246bcbdb20d89b3791 100644 (file)
@@ -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))