]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.C
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_atom.C
index b727dac0f8cdb2bee1ef2c58af340818a7e26dfc..4ae004f521691bb809b26d4f3795fbbd9838b8f0 100644 (file)
@@ -32,8 +32,11 @@ MathAtom::MathAtom(InsetBase * p)
 
 
 MathAtom::MathAtom(MathAtom const & at)
-       : nucleus_(at.nucleus_ ? static_cast<MathInset *>(at.nucleus_->clone()) : 0)
-{}
+       : nucleus_(0)
+{
+       if (at.nucleus_)
+               nucleus_ = static_cast<MathInset*>(at.nucleus_->clone().release());
+}
 
 
 void MathAtom::operator=(MathAtom const & at)