X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDiagram.cpp;h=c2019d4be856930273f5d456822a6ca327bfec07;hb=02e82157ec583c3900e359de86be79fac6512387;hp=9031b40d5e72c9a35c26e70a87756e2a5a0bc4ad;hpb=e449e70e3854da3aeda8dca1de22cabaf6ae0557;p=lyx.git diff --git a/src/mathed/InsetMathDiagram.cpp b/src/mathed/InsetMathDiagram.cpp index 9031b40d5e..c2019d4be8 100644 --- a/src/mathed/InsetMathDiagram.cpp +++ b/src/mathed/InsetMathDiagram.cpp @@ -48,6 +48,7 @@ int InsetMathDiagram::rowsep() const void InsetMathDiagram::metrics(MetricsInfo & mi, Dimension & dim) const { + Changer dummy2 = mi.base.changeEnsureMath(); FontInfo & f = mi.base.font; Changer dummy = (f.style() == LM_ST_DISPLAY) ? f.changeStyle(LM_ST_TEXT) : Changer(); @@ -57,7 +58,7 @@ void InsetMathDiagram::metrics(MetricsInfo & mi, Dimension & dim) const void InsetMathDiagram::draw(PainterInfo & pi, int x, int y) const { - setPosCache(pi, x, y); + Changer dummy2 = pi.base.changeEnsureMath(); FontInfo & f = pi.base.font; Changer dummy = (f.style() == LM_ST_DISPLAY) ? f.changeStyle(LM_ST_TEXT) : Changer();