]> git.lyx.org Git - features.git/commitdiff
Only add inset postion to cache in paintInset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Feb 2016 13:34:55 +0000 (14:34 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 30 May 2016 12:55:41 +0000 (14:55 +0200)
It was also added in paintText and paintOnlyInsets.

src/RowPainter.cpp

index 276664237f220572c99621abcd84d80148d4a226..40d2618b175dfbcde42258d1627e2d2554d93b76 100644 (file)
@@ -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();
                }