]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_atom.h
index 9e02b7a8d30883d17d865cb1a9154433a66681a6..e4e2ce99a4811c809f2868286e62c6d15d5449b6 100644 (file)
@@ -55,14 +55,15 @@ public:
        /// we really need to clean up
        ~MathAtom();
        /// assignment invokes nucleus_->clone()
-       void operator=(MathAtom const &);
+       MathAtom & operator=(MathAtom const &);
        /// access to the inset (checked with gprof)
        MathInset       * nucleus()       { return nucleus_; }
+       MathInset const * nucleus() const { return nucleus_; }
        /// access to the inset
        MathInset const * operator->() const { return nucleus_; }
 
        /// width cache. Not nice...
-       mutable int width_;
+       //mutable int width_;
 
 private:
        ///