]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_binaryopinset.C
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_binaryopinset.C
index 71ff00f4afb4ad9122827caf50b5cc9e99937584..26a4df7fca6da714b285f7c32b3d23188f80c925 100644 (file)
@@ -1,9 +1,19 @@
-#include <config.h>
+/**
+ * \file math_binaryopinset.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Alejandro Aguilar Sierra
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
+#include <config.h>
 
 #include "math_binaryopinset.h"
-#include "PainterInfo.h"
-#include "support/LOstream.h"
+#include "metricsinfo.h"
+#include "support/std_ostream.h"
 #include "math_support.h"
 #include "math_mathmlstream.h"
 
@@ -16,9 +26,9 @@ MathBinaryOpInset::MathBinaryOpInset(char op)
 {}
 
 
-InsetBase * MathBinaryOpInset::clone() const
+std::auto_ptr<InsetBase> MathBinaryOpInset::clone() const
 {
-       return new MathBinaryOpInset(*this);
+       return auto_ptr<InsetBase>(new MathBinaryOpInset(*this));
 }
 
 
@@ -28,7 +38,9 @@ int MathBinaryOpInset::opwidth() const
 }
 
 
+#ifdef WITH_WARNINGS
 #warning Andre, have a look here. (Lgb)
+#endif
 #if 0
 // That this is not declared in class MathBinaryOpInset makes
 // Doxygen give warnings. (Lgb)
@@ -43,6 +55,7 @@ void MathBinaryOpInset::metrics(MetricsInfo & mi, Dimension & dim) const
 }
 #endif
 
+
 void MathBinaryOpInset::draw(PainterInfo & pain, int x, int y) const
 {
        cell(0).draw(pain, x, y);