]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathClass.cpp
typo
[lyx.git] / src / mathed / InsetMathClass.cpp
index 0237f250d054ff192383758ef9b3af585b6b97f3..0c22d478c7acb8d413eb5aa131afb2a544c2c0a8 100644 (file)
@@ -28,17 +28,31 @@ Inset * InsetMathClass::clone() const
 }
 
 
+Limits InsetMathClass::defaultLimits(bool display) const
+{
+       if (allowsLimitsChange() && display)
+               return LIMITS;
+       else
+               return NO_LIMITS;
+}
+
+
 void InsetMathClass::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
-       metricsMarkers(mi, dim);
 }
 
 
 void InsetMathClass::draw(PainterInfo & pi, int x, int y) const
 {
-       cell(0).draw(pi, x + 1, y);
-       drawMarkers(pi, x, y);
+       cell(0).draw(pi, x, y);
+}
+
+
+void InsetMathClass::write(TeXMathStream & os) const
+{
+       InsetMathNest::write(os);
+       writeLimits(os);
 }