]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_numberinset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_numberinset.C
index 249221153ef3b79ac9ff1395f57a47240feab776..acf4302c25d5316c2e7e8a71277a69f1d882b891 100644 (file)
@@ -1,12 +1,21 @@
-#include <config.h>
+/**
+ * \file math_numberinset.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_numberinset.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 +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));
 }
@@ -29,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_);
 }