]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTabular.cpp
Fix drawing of empty boxes
[lyx.git] / src / mathed / InsetMathTabular.cpp
index 40cf58d37c58920627bb4fc20e220c14d61469ec..e4123a565509cd6dd0b96875a42084a0e102104d 100644 (file)
@@ -16,6 +16,8 @@
 #include "MathStream.h"
 #include "MathStream.h"
 
+#include "MetricsInfo.h"
+
 #include "support/lstrings.h"
 
 #include <ostream>
@@ -45,22 +47,13 @@ void InsetMathTabular::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        Changer dummy = mi.base.changeFontSet("textnormal");
        InsetMathGrid::metrics(mi, dim);
-       dim.wid += 6;
-}
-
-
-Dimension const InsetMathTabular::dimension(BufferView const & bv) const
-{
-       Dimension dim = InsetMathGrid::dimension(bv);
-       dim.wid += 6;
-       return dim;
 }
 
 
 void InsetMathTabular::draw(PainterInfo & pi, int x, int y) const
 {
        Changer dummy = pi.base.changeFontSet("textnormal");
-       InsetMathGrid::drawWithMargin(pi, x, y, 4, 2);
+       InsetMathGrid::draw(pi, x, y);
 }