]> git.lyx.org Git - lyx.git/blobdiff - src/RowPainter.cpp
Try to fix #4889 in the right way
[lyx.git] / src / RowPainter.cpp
index 1c48b5bb348bd1dadc8bbeb6afc421a160ac9931..08ac66d467c85bcfc7e72d979ef42f96fa8fa05a 100644 (file)
@@ -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();
        }
 }