]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sizeinset.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_sizeinset.C
index 49966d2292aabeca201cfadd124471bd30418ed0..099e421694406a9cd9f88930cd9581e0db0b6363 100644 (file)
 #include "math_parser.h"
 #include "math_streamstr.h"
 
+#include "support/convert.h"
 #include "support/std_ostream.h"
-#include "support/lyxlib.h"
-
-using lyx::support::atoi;
 
 using std::auto_ptr;
 
 
 MathSizeInset::MathSizeInset(latexkeys const * l)
-       : MathNestInset(1), key_(l), style_(Styles(atoi(l->extra)))
+       : MathNestInset(1), key_(l), style_(Styles(convert<int>(l->extra)))
 {}
 
 
-auto_ptr<InsetBase> MathSizeInset::clone() const
+auto_ptr<InsetBase> MathSizeInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathSizeInset(*this));
 }