]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCases.cpp
Move class definitions inside main class
[lyx.git] / src / mathed / InsetMathCases.cpp
index 10d889555b91dccc2293424f0673df3a6004f59e..f510278708b86a7f896f65f135d11eecfe0cb9c9 100644 (file)
@@ -46,15 +46,6 @@ Inset * InsetMathCases::clone() const
 void InsetMathCases::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        InsetMathGrid::metrics(mi, dim);
-       dim.wid += 8;
-}
-
-
-Dimension const InsetMathCases::dimension(BufferView const & bv) const
-{
-       Dimension dim = InsetMathGrid::dimension(bv);
-       dim.wid += 8;
-       return dim;
 }
 
 
@@ -62,7 +53,7 @@ void InsetMathCases::draw(PainterInfo & pi, int x, int y) const
 {
        Dimension const dim = dimension(*pi.base.bv);
        mathed_draw_deco(pi, x + 1, y - dim.ascent(), 6, dim.height(), from_ascii("{"));
-       InsetMathGrid::drawWithMargin(pi, x, y, 8, 0);
+       InsetMathGrid::draw(pi, x, y);
        setPosCache(pi, x, y);
 }