]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathData.cpp
tex2lyx/text.cpp: fix typos
[lyx.git] / src / mathed / MathData.cpp
index a4a11bb1361514ba830750d97c7e6827c1782c2a..12fb6c190754cd969a81d5cf5a02ceacecbefcdd 100644 (file)
@@ -28,6 +28,8 @@
 #include "CoordCache.h"
 #include "Cursor.h"
 
+#include "mathed/InsetMathUnknown.h"
+
 #include "support/debug.h"
 #include "support/docstream.h"
 
@@ -278,7 +280,9 @@ void MathData::metrics(MetricsInfo & mi, Dimension & dim) const
                if (completion.length() == 0)
                        continue;
                
-               dim.wid += mathed_string_width(mi.base.font, completion);
+               FontInfo font = mi.base.font;
+               augmentFont(font, from_ascii("mathnormal"));
+               dim.wid += mathed_string_width(font, completion);
        }
        // Cache the dimension.
        mi.base.bv->coordCache().arrays().add(this, dim);
@@ -326,6 +330,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"));
                
                // draw the unique and the non-unique completion part
                // Note: this is not time-critical as it is