]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_numberinset.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_numberinset.C
index 5417200afd5c5d236b59e9d467bb81d3f3d8108e..acf4302c25d5316c2e7e8a71277a69f1d882b891 100644 (file)
@@ -14,8 +14,8 @@
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 #include "math_support.h"
-#include "debug.h"
 
+using std::string;
 using std::auto_ptr;
 
 
@@ -24,7 +24,7 @@ MathNumberInset::MathNumberInset(string const & s)
 {}
 
 
-auto_ptr<InsetBase> MathNumberInset::clone() const
+auto_ptr<InsetBase> MathNumberInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathNumberInset(*this));
 }
@@ -38,8 +38,7 @@ void MathNumberInset::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void MathNumberInset::draw(PainterInfo & pi, int x, int y) const
 {
-       //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
-       drawStr(pi, pi.base.font, x, y, str_);
+       pi.draw(x, y, str_);
 }