]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_atom.C
index bd5cda75be3aec9bbe5a9d2be7819ba77e7e862a..4b8259f1ff75e08b2f0906ac643ddd28a2100b54 100644 (file)
@@ -34,12 +34,13 @@ MathAtom::MathAtom(MathAtom const & at)
 }
 
 
-void MathAtom::operator=(MathAtom const & at)
+MathAtom & MathAtom::operator=(MathAtom const & at)
 {
        if (&at == this)
-               return;
+               return *this;
        MathAtom tmp(at);
        swap(tmp.nucleus_, nucleus_);
+       return *this;
 }