X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathTabular.cpp;h=e4123a565509cd6dd0b96875a42084a0e102104d;hb=1f352b390c897d583bffaad695c04b613b88a139;hp=40cf58d37c58920627bb4fc20e220c14d61469ec;hpb=e2bc7ffae3eb387661064be8b9dc927742f9e7e8;p=lyx.git diff --git a/src/mathed/InsetMathTabular.cpp b/src/mathed/InsetMathTabular.cpp index 40cf58d37c..e4123a5655 100644 --- a/src/mathed/InsetMathTabular.cpp +++ b/src/mathed/InsetMathTabular.cpp @@ -16,6 +16,8 @@ #include "MathStream.h" #include "MathStream.h" +#include "MetricsInfo.h" + #include "support/lstrings.h" #include @@ -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); }