X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_fracinset.C;h=856e3b664b5b333379481908975005f091ecdeae;hb=ec5d8718c51e86b6300de5de29732634cace81d3;hp=895772568512e455d445b2a235a44d2f4ba399fd;hpb=b1c4f8070feac7b2cc6d0054cc305dc3a6e918b8;p=lyx.git diff --git a/src/mathed/math_fracinset.C b/src/mathed/math_fracinset.C index 8957725685..856e3b664b 100644 --- a/src/mathed/math_fracinset.C +++ b/src/mathed/math_fracinset.C @@ -21,7 +21,7 @@ MathFracInset::MathFracInset(MathInsetTypes ot) } -MathInset * MathFracInset::Clone() const +MathInset * MathFracInset::clone() const { return new MathFracInset(*this); } @@ -29,9 +29,9 @@ MathInset * MathFracInset::Clone() const void MathFracInset::Metrics(MathStyles st) { - xcell(0).Metrics(st); - xcell(1).Metrics(st); - size_ = st; + size_ = smallerStyleFrac(st); + xcell(0).Metrics(size_); + xcell(1).Metrics(size_); width_ = std::max(xcell(0).width(), xcell(1).width()) + 4; ascent_ = xcell(0).height() + 4 + 5; descent_ = xcell(1).height() + 4 - 5;