]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_binaryopinset.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_binaryopinset.C
index 40fc662fbb0e1eee34a64f998969b5a722a896b6..b20a12fbca22bd6f9b882d0f4b15da4fc82e2e1d 100644 (file)
 #include "math_mathmlstream.h"
 
 
+using std::max;
+
+
 MathBinaryOpInset::MathBinaryOpInset(char op)
        : MathNestInset(2), op_(op)
 {}
 
 
 MathInset * MathBinaryOpInset::clone() const
-{   
+{
        return new MathBinaryOpInset(*this);
 }
 
@@ -34,16 +37,16 @@ void MathBinaryOpInset::metrics(MathMetricsInfo const & mi) const
        xcell(0).metrics(mi);
        xcell(1).metrics(mi);
        width_   = xcell(0).width() + xcell(1).width() + opwidth();
-       ascent_  = std::max(xcell(0).ascent(),  xcell(1).ascent());
-       descent_ = std::max(xcell(0).descent(), xcell(1).descent());
+       ascent_  = max(xcell(0).ascent(),  xcell(1).ascent());
+       descent_ = max(xcell(0).descent(), xcell(1).descent());
 }
 
 
 void MathBinaryOpInset::draw(Painter & pain, int x, int y) const
-{ 
-       xcell(0).draw(pain, x, y); 
+{
+       xcell(0).draw(pain, x, y);
        drawChar(pain, LM_TC_CONST, mi_, x + xcell(0).width() , y, op_);
-       xcell(1).draw(pain, x + width() - xcell(1).width(), y); 
+       xcell(1).draw(pain, x + width() - xcell(1).width(), y);
 }