]> 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 286b41ea76d060894d22af1ac8e2af0943ea1313..e4e2ce99a4811c809f2868286e62c6d15d5449b6 100644 (file)
@@ -1,18 +1,23 @@
 // -*- C++ -*-
-
-#ifndef MATH_ATOM_H
-#define MATH_ATOM_H
-
-
 /**
- * Wrapper for MathInset * with copy-semantics
+ * \file math_atom.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author André Pönitz
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
+#ifndef MATH_ATOM_H
+#define MATH_ATOM_H
+
+
 /**
+Wrapper for MathInset * with copy-semantics
+
+--
+
 The 'atom' is the major blob in math typesetting.  And 'atom' consists
 of a nucleus, an optional superscript, and an optional subscript.
 
@@ -50,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:
        ///