X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathMacro.cpp;h=b955cd659ec1117f549dbf84694b0e160debda2d;hb=e0d54dd3b497b78094ea16ab0f38ccdc8c1642e2;hp=dc34f004793152e24844e0a8bc42ae6ed5c00611;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index dc34f00479..b955cd659e 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -119,7 +119,7 @@ bool MathMacro::metrics(MetricsInfo & mi, Dimension & dim) const } else if (editing(mi.base.bv)) { // FIXME UNICODE asArray(macro.def(), tmpl_); - LyXFont font = mi.base.font; + Font font = mi.base.font; augmentFont(font, from_ascii("lyxtex")); tmpl_.metrics(mi, dim); // FIXME UNICODE @@ -164,7 +164,7 @@ void MathMacro::draw(PainterInfo & pi, int x, int y) const // FIXME UNICODE drawStrRed(pi, x, y, "Self reference: " + name()); } else if (editing(pi.base.bv)) { - LyXFont font = pi.base.font; + Font font = pi.base.font; augmentFont(font, from_ascii("lyxtex")); int h = y - dim_.ascent() + 2 + tmpl_.ascent(); pi.pain.text(x + 3, h, name(), font);