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();
}
}