]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTabular.cpp
Only set buffer if it is not null.
[lyx.git] / src / mathed / InsetMathTabular.cpp
index 40cf58d37c58920627bb4fc20e220c14d61469ec..565a71fb186baba5ae373f29e9e983de9455eac6 100644 (file)
@@ -14,7 +14,8 @@
 
 #include "MathData.h"
 #include "MathStream.h"
-#include "MathStream.h"
+
+#include "MetricsInfo.h"
 
 #include "support/lstrings.h"
 
@@ -45,22 +46,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);
 }