]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diffinset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_diffinset.C
index bf30b4a7ce4a7fdd142b4d8c5ab6efff4999d44f..15d0648ff6dcfdd33294b06b3e6bcb28a165eefd 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "math_diffinset.h"
 #include "math_support.h"
 #include "math_mathmlstream.h"
@@ -18,8 +22,7 @@ MathInset * MathDiffInset::clone() const
 
 void MathDiffInset::addDer(MathArray const & der)
 {
-       cells_.push_back(MathXArray());
-       cells_.back().data_ = der;
+       cells_.push_back(der);
 }
 
 
@@ -55,6 +58,7 @@ void MathDiffInset::maplize(MapleStream & os) const
        os << ')';
 }
 
+
 void MathDiffInset::mathematicize(MathematicaStream & os) const
 {
        os << "Dt[";