X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_dotsinset.C;h=b6c460acb1352e3fc82b10c0fa2b703363580e6d;hb=d359dd8fca52c4f0100f7cf4bf636113c5c4e49f;hp=839af0d3602ac319de5c0ac548cbc430d825588d;hpb=6a0b1fe001fac6db6c5731cd5b948b53fb204a55;p=lyx.git diff --git a/src/mathed/math_dotsinset.C b/src/mathed/math_dotsinset.C index 839af0d360..b6c460acb1 100644 --- a/src/mathed/math_dotsinset.C +++ b/src/mathed/math_dotsinset.C @@ -21,11 +21,9 @@ MathInset * MathDotsInset::clone() const } -void MathDotsInset::metrics(MathMetricsInfo const & mi) const +void MathDotsInset::metrics(MathMetricsInfo & mi) const { - LyXFont font; - whichFont(font, LM_TC_VAR, mi); - mathed_char_dim(font, 'M', ascent_, descent_, width_); + mathed_char_dim(mi.base.font, 'M', ascent_, descent_, width_); if (name_ == "ldots" || name_ == "dotsm") dh_ = 0; else if (name_ == "cdots" || name_ == "dotsb" @@ -40,7 +38,7 @@ void MathDotsInset::metrics(MathMetricsInfo const & mi) const } -void MathDotsInset::draw(Painter & pain, int x, int y) const +void MathDotsInset::draw(MathPainterInfo & pain, int x, int y) const { mathed_draw_deco(pain, x + 2, y - dh_, width_ - 2, ascent_, name_); if (name_ == "vdots" || name_ == "ddots")