X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRowPainter.cpp;h=08ac66d467c85bcfc7e72d979ef42f96fa8fa05a;hb=9940acc5;hp=1c48b5bb348bd1dadc8bbeb6afc421a160ac9931;hpb=e35110eab7a540deaf8dc52483f1e5a55a773f46;p=lyx.git diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 1c48b5bb34..08ac66d467 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -550,15 +550,8 @@ void RowPainter::paintOnlyInsets() Row::const_iterator const & end = row_.end(); for ( ; cit != end ; ++cit) { Row::Element const & e = *cit; - if (e.type == Row::INSET) { - // If outer row has changed, nested insets are repainted completely. - // FIXME: check what this really does. The test is weird. - bool const nested_inset = - (e.inset->asInsetMath() && !e.inset->asInsetMath()->asMacroTemplate()) - || e.inset->asInsetText() || e.inset->asInsetTabular(); - if (nested_inset) + if (e.type == Row::INSET) paintInset(e); - } x_ += e.full_width(); } }