From 77ef48d093d08ef3491e4f00a994f9709b41ccf2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 29 Feb 2016 14:34:55 +0100 Subject: [PATCH] Only add inset postion to cache in paintInset It was also added in paintText and paintOnlyInsets. --- src/RowPainter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 276664237f..40d2618b17 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -577,7 +577,6 @@ void RowPainter::paintOnlyInsets() Row::Element const & e = *cit; if (e.type == Row::INSET) { // 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 = (e.inset->asInsetMath() && !e.inset->asInsetMath()->asMacroTemplate()) || e.inset->asInsetText() || e.inset->asInsetTabular(); @@ -611,8 +610,7 @@ void RowPainter::paintText() paintMisspelledMark(orig_x, e); break; case Row::INSET: { - // If outer row has changed, nested insets are repaint completely. - pi_.base.bv->coordCache().insets().add(e.inset, int(x_), yo_); + // If outer row has changed, nested insets are repainted completely. paintInset(e); foreign_descent = e.dim.descent(); } -- 2.39.2