]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.C
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_spaceinset.C
index 75620aa8ebe8f9d310376abfbfd6b71a2c853b3b..46408f177e2f8e6e49c3d6c8a0ab2dfbf39f7960 100644 (file)
@@ -3,11 +3,13 @@
 #endif
 
 #include "math_spaceinset.h"
+#include "support.h"
 #include "LColor.h"
 #include "Painter.h"
 #include "support/LOstream.h"
 
 
+
 MathSpaceInset::MathSpaceInset(int sp)
        : space_(sp)
 {}
@@ -19,7 +21,7 @@ MathInset * MathSpaceInset::clone() const
 }
 
 
-void MathSpaceInset::draw(Painter & pain, int x, int y)
+void MathSpaceInset::draw(Painter & pain, int x, int y) const
 { 
        
 // XPoint p[4] = {{++x, y-3}, {x, y}, {x+width-2, y}, {x+width-2, y-3}};
@@ -51,7 +53,7 @@ void MathSpaceInset::writeNormal(std::ostream & os) const
 }
 
 
-void MathSpaceInset::metrics(MathStyles st)
+void MathSpaceInset::metrics(MathStyles st) const
 {
        size_  = st;
        width_ = space_ ? space_ * 2 : 2;