X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathTabular.cpp;h=bb4e5c48381e21d6f152a6e0513bbdc03ce976e7;hb=11a6b3c4c7a031fd3776f53c9c43f62116933cea;hp=5231e01aff87da18338320b862343ad8c23f731d;hpb=237c132c1e6fc720b87f2fea6deb18a8395cbe0a;p=lyx.git diff --git a/src/mathed/InsetMathTabular.cpp b/src/mathed/InsetMathTabular.cpp index 5231e01aff..bb4e5c4838 100644 --- a/src/mathed/InsetMathTabular.cpp +++ b/src/mathed/InsetMathTabular.cpp @@ -11,14 +11,14 @@ #include #include "InsetMathTabular.h" + #include "MathData.h" #include "MathStream.h" #include "MathStream.h" #include "support/lstrings.h" -#include "support/std_ostream.h" -#include +#include namespace lyx { @@ -51,7 +51,14 @@ void InsetMathTabular::metrics(MetricsInfo & mi, Dimension & dim) const FontSetChanger dummy(mi.base, "textnormal"); InsetMathGrid::metrics(mi, dim); dim.wid += 6; - dim_ = dim; +} + + +Dimension const InsetMathTabular::dimension(BufferView const & bv) const +{ + Dimension dim = InsetMathGrid::dimension(bv); + dim.wid += 6; + return dim; }