]> git.lyx.org Git - features.git/commit
Get rid of Inset::setPosCache
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 5 Dec 2016 10:51:18 +0000 (11:51 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 6 Dec 2016 15:15:47 +0000 (16:15 +0100)
commit02e82157ec583c3900e359de86be79fac6512387
tree050abdc4af5b3b5e57a968355181e2c9152ca56a
parent418016bf792d168f027f8a82e5a744bbca758a77
Get rid of Inset::setPosCache

This helper method is used to set the inset position cache at drawing
time. However this is already done by the drawing code itself
(MathRow::draw, RowPainter::paintInset), so that there is no need to
do this same work again in a different place.

Note that the inset positions are still set in InsetTabular::draw for
each cell.

This commit comes with a mild risk attached (it might be that some of
these calls were useful after all!), but all of this is fixable.
23 files changed:
src/insets/Inset.cpp
src/insets/Inset.h
src/insets/InsetIPA.cpp
src/insets/InsetPreview.cpp
src/mathed/CommandInset.cpp
src/mathed/InsetMathArray.cpp
src/mathed/InsetMathBig.cpp
src/mathed/InsetMathBox.cpp
src/mathed/InsetMathCases.cpp
src/mathed/InsetMathColor.cpp
src/mathed/InsetMathDecoration.cpp
src/mathed/InsetMathDelim.cpp
src/mathed/InsetMathDiagram.cpp
src/mathed/InsetMathDots.cpp
src/mathed/InsetMathFont.cpp
src/mathed/InsetMathFrac.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathSplit.cpp
src/mathed/InsetMathXYMatrix.cpp
src/mathed/MathMacro.cpp
src/mathed/MathMacroArgument.cpp
src/mathed/MathMacroTemplate.cpp