]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_kerninset.C
Make Helge happy: no more crash on arrow up/down in math macro
[lyx.git] / src / mathed / math_kerninset.C
index f17311986310398fe9f44fc6d34c9f566537e667..b07c8eee1e60ae6a2583d961f0ac9b76ff12fa5a 100644 (file)
@@ -14,7 +14,9 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 #include "math_support.h"
+#include "dimension.h"
 
+using std::string;
 using std::auto_ptr;
 
 
@@ -32,7 +34,7 @@ MathKernInset::MathKernInset(string const & s)
 {}
 
 
-auto_ptr<InsetBase> MathKernInset::clone() const
+auto_ptr<InsetBase> MathKernInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathKernInset(*this));
 }
@@ -52,7 +54,11 @@ void MathKernInset::draw(PainterInfo &, int, int) const
 
 void MathKernInset::write(WriteStream & os) const
 {
-       os << "\\kern" << wid_.asLatexString() << ' ';
+#ifdef WITH_WARNINGS
+#warning this crashs on startup!
+#endif
+       //os << "\\kern" << wid_.asLatexString() << ' ';
+       os << "\\kern0mm ";
 }