X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmathed%2FInsetMathSideset.cpp;h=cdc5637282e0d817d49530defbdb5bb87b0e7dbb;hb=ebe6612e2661f49dcfae6103f056c27afd47751f;hp=b04eca7730548a93dd04543b92bebef92b289b92;hpb=f643ae700700cbd9aa0b1aca8155c6d7f2aee34d;p=lyx.git diff --git a/src/mathed/InsetMathSideset.cpp b/src/mathed/InsetMathSideset.cpp index b04eca7730..cdc5637282 100644 --- a/src/mathed/InsetMathSideset.cpp +++ b/src/mathed/InsetMathSideset.cpp @@ -36,7 +36,7 @@ using namespace std; namespace { /// x spacing between the nucleus and the scripts int const dx = 2; -} +} // namespace namespace lyx { @@ -185,6 +185,7 @@ int InsetMathSideset::nker(BufferView const * bv) const void InsetMathSideset::metrics(MetricsInfo & mi, Dimension & dim) const { + Changer dummy2 = mi.base.changeEnsureMath(); Dimension dimn; Dimension dimbl; Dimension dimtl; @@ -221,12 +222,12 @@ void InsetMathSideset::metrics(MetricsInfo & mi, Dimension & dim) const int nd = ndes(bv); int des = dyb(bv) + max(dimbl.descent(), dimbr.descent()); dim.des = max(nd, des); - metricsMarkers(mi, dim); } void InsetMathSideset::draw(PainterInfo & pi, int x, int y) const { + Changer dummy2 = pi.base.changeEnsureMath(); BufferView & bv = *pi.base.bv; nuc().draw(pi, x + dxn(bv), y); if (!scriptl_) @@ -242,7 +243,6 @@ void InsetMathSideset::draw(PainterInfo & pi, int x, int y) const br().draw(pi, x + dxr(bv), y + dyb(bv)); tr().draw(pi, x + dxr(bv), y - dyt(bv)); } - drawMarkers(pi, x, y); }