]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_binominset.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_binominset.C
index 342492c8ab470c79e8a06db94f037280960f4b4b..20732e7ccacfb374af4f2b19807d6ce042ff2071 100644 (file)
@@ -1,3 +1,5 @@
+#include <config.h>
+
 #ifdef __GNUG__
 #pragma implementation
 #endif
 #include "math_mathmlstream.h"
 
 
+using std::max;
+
+
 MathBinomInset::MathBinomInset()
 {}
 
 
 MathInset * MathBinomInset::clone() const
-{   
+{
        return new MathBinomInset(*this);
 }
 
@@ -36,8 +41,8 @@ void MathBinomInset::metrics(MathMetricsInfo const & st) const
        xcell(0).metrics(mi);
        xcell(1).metrics(mi);
        ascent_  = xcell(0).height() + 4 + 5;
-       descent_ = xcell(1).height() + 4 - 5; 
-       width_   = std::max(xcell(0).width(), xcell(1).width()) + 2 * dw() + 4; 
+       descent_ = xcell(1).height() + 4 - 5;
+       width_   = max(xcell(0).width(), xcell(1).width()) + 2 * dw() + 4;
 }