]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diffinset.C
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / math_diffinset.C
index e0838b89ef5c42d253bc4107964855444a022b6d..4b7cdac9ff933f1f2fe8721dd5880cd20018fb60 100644 (file)
@@ -1,10 +1,22 @@
+/**
+ * \file math_diffinset.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_diffinset.h"
-#include "math_support.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
-#include "math_symbolinset.h"
 #include "debug.h"
 
 using std::auto_ptr;
+using std::endl;
 
 
 MathDiffInset::MathDiffInset()
@@ -12,7 +24,7 @@ MathDiffInset::MathDiffInset()
 {}
 
 
-auto_ptr<InsetBase> MathDiffInset::clone() const
+auto_ptr<InsetBase> MathDiffInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathDiffInset(*this));
 }
@@ -35,13 +47,13 @@ void MathDiffInset::normalize(NormalStream & os) const
 
 void MathDiffInset::metrics(MetricsInfo &, Dimension &) const
 {
-       lyxerr << "should not happen\n";
+       lyxerr << "should not happen" << endl;
 }
 
 
 void MathDiffInset::draw(PainterInfo &, int, int) const
 {
-       lyxerr << "should not happen\n";
+       lyxerr << "should not happen" << endl;
 }
 
 
@@ -83,5 +95,5 @@ void MathDiffInset::mathmlize(MathMLStream & os) const
 
 void MathDiffInset::write(WriteStream &) const
 {
-       lyxerr << "should not happen\n";
+       lyxerr << "should not happen" << endl;
 }