]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.cpp
Fixup 89662a68: remove markers that should not be there
[lyx.git] / src / mathed / InsetMath.cpp
index 093dcda4d08366a867d7f19581eedb97c8af2d7f..e3b46b9e5caa484c9613e27ff992af3d85d8d036 100644 (file)
@@ -58,44 +58,21 @@ MathClass InsetMath::mathClass() const
 }
 
 
+InsetMath::marker_type InsetMath::marker() const
+{
+       return nargs() > 0 ? MARKER : NO_MARKER;
+}
+
+
 bool InsetMath::addToMathRow(MathRow & mrow, MetricsInfo & mi) const
 {
        MathRow::Element e(mi, MathRow::INSET, mathClass());
        e.inset = this;
+       e.marker = mi.base.macro_nesting ? NO_MARKER : marker();
        mrow.push_back(e);
        return true;
 }
 
-void InsetMath::metricsMarkers(MetricsInfo & mi, Dimension & dim,
-                           int framesize) const
-{
-       if (!mi.base.macro_nesting)
-               Inset::metricsMarkers(dim, framesize);
-}
-
-
-void InsetMath::metricsMarkers2(MetricsInfo & mi, Dimension & dim,
-                            int framesize) const
-{
-       if (!mi.base.macro_nesting)
-               Inset::metricsMarkers2(dim, framesize);
-}
-
-
-void InsetMath::drawMarkers(PainterInfo & pi, int x, int y) const
-{
-       if (!pi.base.macro_nesting)
-               Inset::drawMarkers(pi, x, y);
-}
-
-
-void InsetMath::drawMarkers2(PainterInfo & pi, int x, int y) const
-{
-       if (!pi.base.macro_nesting)
-               Inset::drawMarkers2(pi, x, y);
-}
-
-
 
 void InsetMath::dump() const
 {