]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_stringinset.C
index b1dcddae5c0cf01e33e3cbc51a0412cb8451f7ba..8b157df513b33cd6a4da1684f25a740ca00deb97 100644 (file)
@@ -1,12 +1,22 @@
-#include <config.h>
+/**
+ * \file math_stringinset.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
+#include <config.h>
 
 #include "math_stringinset.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
 #include "math_support.h"
-#include "debug.h"
 
+
+using std::string;
 using std::auto_ptr;
 
 
@@ -15,7 +25,7 @@ MathStringInset::MathStringInset(string const & s)
 {}
 
 
-auto_ptr<InsetBase> MathStringInset::clone() const
+auto_ptr<InsetBase> MathStringInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathStringInset(*this));
 }
@@ -30,7 +40,7 @@ void MathStringInset::metrics(MetricsInfo & mi, Dimension & dim) const
 void MathStringInset::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_);
 }