]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parinset.C
Fix event loop to no longer eat CPU
[lyx.git] / src / mathed / math_parinset.C
index 83eb131c3d7bb4c9bcaa798d2ea925299a513cfe..3f2baae0ddefce2bd1bbfeb7179415d7254aca98 100644 (file)
 #include <config.h>
 
 #include "math_parinset.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
 #include "support/std_ostream.h"
 
 
+using std::auto_ptr;
+
+
 MathParInset::MathParInset(MathArray const & ar)
 {
        cells_[0] = ar;
@@ -47,3 +51,9 @@ void MathParInset::infoize(std::ostream & os) const
 {
        os << "Type: Paragraph ";
 }
+
+
+auto_ptr<InsetBase> MathParInset::doClone() const
+{
+       return auto_ptr<InsetBase>(new MathParInset(*this));
+}