]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathClass.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathClass.cpp
index 931a68b9a4f4153ea7721d5b5b20171fcec20be9..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(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);
 }