]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnknown.cpp
Move metrics computation close to drawing for drawStrRed/Black
[lyx.git] / src / mathed / InsetMathUnknown.cpp
index 03c41462f03ab680ad9b7cda87863facfa03309f..29dae2b971ee27f588f4be2a6a18b713448923e5 100644 (file)
@@ -47,7 +47,7 @@ void InsetMathUnknown::normalize(NormalStream & os) const
 
 void InsetMathUnknown::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       mathed_string_dim(mi.base.font, name_, dim);
+       metricsStrRedBlack(mi, dim, name_);
        docstring::const_reverse_iterator rit = name_.rbegin();
        kerning_ = mathed_char_kerning(mi.base.font, *rit);
 }