mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Only add inset postion to cache in paintInset
It was also added in paintText and paintOnlyInsets.
This commit is contained in:
parent
30ef73ab66
commit
77ef48d093
@ -577,7 +577,6 @@ void RowPainter::paintOnlyInsets()
|
|||||||
Row::Element const & e = *cit;
|
Row::Element const & e = *cit;
|
||||||
if (e.type == Row::INSET) {
|
if (e.type == Row::INSET) {
|
||||||
// If outer row has changed, nested insets are repainted completely.
|
// If outer row has changed, nested insets are repainted completely.
|
||||||
pi_.base.bv->coordCache().insets().add(e.inset, int(x_), yo_);
|
|
||||||
bool const nested_inset =
|
bool const nested_inset =
|
||||||
(e.inset->asInsetMath() && !e.inset->asInsetMath()->asMacroTemplate())
|
(e.inset->asInsetMath() && !e.inset->asInsetMath()->asMacroTemplate())
|
||||||
|| e.inset->asInsetText() || e.inset->asInsetTabular();
|
|| e.inset->asInsetText() || e.inset->asInsetTabular();
|
||||||
@ -611,8 +610,7 @@ void RowPainter::paintText()
|
|||||||
paintMisspelledMark(orig_x, e);
|
paintMisspelledMark(orig_x, e);
|
||||||
break;
|
break;
|
||||||
case Row::INSET: {
|
case Row::INSET: {
|
||||||
// If outer row has changed, nested insets are repaint completely.
|
// If outer row has changed, nested insets are repainted completely.
|
||||||
pi_.base.bv->coordCache().insets().add(e.inset, int(x_), yo_);
|
|
||||||
paintInset(e);
|
paintInset(e);
|
||||||
foreign_descent = e.dim.descent();
|
foreign_descent = e.dim.descent();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user