]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_undersetinset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_undersetinset.C
index 8dd90e0e3e39e761db5e7d4e6343fd0f01fe99e2..5ba13ad186baab4e8bdfe5d765035bff844f2972 100644 (file)
 #include "math_undersetinset.h"
 #include "math_data.h"
 #include "math_mathmlstream.h"
+
 #include "cursor.h"
+#include "LaTeXFeatures.h"
 
 using std::max;
 using std::auto_ptr;
 
 
 
-auto_ptr<InsetBase> MathUndersetInset::clone() const
+auto_ptr<InsetBase> MathUndersetInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathUndersetInset(*this));
 }
@@ -87,3 +89,10 @@ void MathUndersetInset::normalize(NormalStream & os) const
 {
        os << "[underset " << cell(0) << ' ' << cell(1) << ']';
 }
+
+
+void MathUndersetInset::validate(LaTeXFeatures & features) const
+{
+       features.require("amsmath");
+       MathNestInset::validate(features);
+}