X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_fracinset.C;h=895772568512e455d445b2a235a44d2f4ba399fd;hb=b1c4f8070feac7b2cc6d0054cc305dc3a6e918b8;hp=09429072fb4444984d1a7bc19081353ee57b3118;hpb=76ef051b1cb1fb51c3ffd8ccc9105be4471e74d4;p=lyx.git diff --git a/src/mathed/math_fracinset.C b/src/mathed/math_fracinset.C index 09429072fb..8957725685 100644 --- a/src/mathed/math_fracinset.C +++ b/src/mathed/math_fracinset.C @@ -4,6 +4,8 @@ #pragma implementation #endif +#include + #include "math_fracinset.h" #include "LColor.h" #include "Painter.h" @@ -30,7 +32,7 @@ void MathFracInset::Metrics(MathStyles st) xcell(0).Metrics(st); xcell(1).Metrics(st); size_ = st; - width_ = max(xcell(0).width(), xcell(1).width()) + 4; + width_ = std::max(xcell(0).width(), xcell(1).width()) + 4; ascent_ = xcell(0).height() + 4 + 5; descent_ = xcell(1).height() + 4 - 5; }