X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathBoldSymbol.cpp;h=d8205198843e821056080a0670a12f0097bf8038;hb=5fdc577badb1cb133d6a0dc7d831bb1f82576adb;hp=215bd5ff30367739f4cfa9bb5d0635005f685c99;hpb=e2bc7ffae3eb387661064be8b9dc927742f9e7e8;p=lyx.git diff --git a/src/mathed/InsetMathBoldSymbol.cpp b/src/mathed/InsetMathBoldSymbol.cpp index 215bd5ff30..d820519884 100644 --- a/src/mathed/InsetMathBoldSymbol.cpp +++ b/src/mathed/InsetMathBoldSymbol.cpp @@ -14,6 +14,7 @@ #include "MathStream.h" #include "MathData.h" +#include "MetricsInfo.h" #include "LaTeXFeatures.h" #include @@ -49,15 +50,17 @@ docstring InsetMathBoldSymbol::name() const void InsetMathBoldSymbol::metrics(MetricsInfo & mi, Dimension & dim) const { + Changer dummy = mi.base.changeEnsureMath(); //Changer dummy = mi.base.changeFontSet("mathbf"); cell(0).metrics(mi, dim); - metricsMarkers(dim); + metricsMarkers(mi, dim); ++dim.wid; // for 'double stroke' } void InsetMathBoldSymbol::draw(PainterInfo & pi, int x, int y) const { + Changer dummy = pi.base.changeEnsureMath(); //Changer dummy = pi.base.changeFontSet("mathbf"); cell(0).draw(pi, x + 1, y); cell(0).draw(pi, x + 2, y);