X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFont.cpp;h=a017dd810c4ac3e08af92ff71325f05f4511ebb9;hb=4c724a6072013247ac178f0acec06825585c6c55;hp=b49985829a9d6a37bced7e97549a0a753c03047e;hpb=ff85a4902ec4fff1b3bf0dbc9c9c53b3e87563cf;p=lyx.git diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index b49985829a..a017dd810c 100644 --- a/src/mathed/InsetMathFont.cpp +++ b/src/mathed/InsetMathFont.cpp @@ -66,7 +66,7 @@ void InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const void InsetMathFont::draw(PainterInfo & pi, int x, int y) const { - FontSetChanger dummy(pi.base, key_->name.c_str()); + FontSetChanger dummy(pi.base, key_->name); cell(0).draw(pi, x + 1, y); drawMarkers(pi, x, y); setPosCache(pi, x, y); @@ -194,9 +194,15 @@ void InsetMathFont::mathmlize(MathStream & os) const // no support at present for textipa, textsc, noun if (!variant.empty()) { - os << MTag("mstyle", "mathvariant='" + variant + "'") - << cell(0) - << ETag("mstyle"); + if (tag == "mathbb") { + os << MTag("mstyle", "class='mathbb' mathvariant='" + variant + "'") + << cell(0) + << ETag("mstyle"); + } else { + os << MTag("mstyle", "mathvariant='" + variant + "'") + << cell(0) + << ETag("mstyle"); + } } else os << cell(0); }