]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathData.cpp
Remove a conversion to_utf8() inside FontSetChanger
[lyx.git] / src / mathed / MathData.cpp
index 7e302c8ac7b8655f860fb307f8bde1812a69b79e..8ac4ac1273ac33ebd67ab933e32113722f3164d8 100644 (file)
@@ -285,7 +285,7 @@ void MathData::metrics(MetricsInfo & mi, Dimension & dim) const
                        continue;
 
                FontInfo font = mi.base.font;
-               augmentFont(font, from_ascii("mathnormal"));
+               augmentFont(font, "mathnormal");
                dim.wid += mathed_string_width(font, completion);
        }
        // Cache the dimension.
@@ -334,7 +334,7 @@ void MathData::draw(PainterInfo & pi, int x, int y) const
                if (completion.length() == 0)
                        continue;
                FontInfo f = pi.base.font;
-               augmentFont(f, from_ascii("mathnormal"));
+               augmentFont(f, "mathnormal");
 
                // draw the unique and the non-unique completion part
                // Note: this is not time-critical as it is