X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathTabular.cpp;h=bb4e5c48381e21d6f152a6e0513bbdc03ce976e7;hb=11a6b3c4c7a031fd3776f53c9c43f62116933cea;hp=2e17fb401238fe2604cbb70da412b44be3b3fe43;hpb=ed858d73e57ce7aa89e38c1bc4d799362edb0227;p=lyx.git diff --git a/src/mathed/InsetMathTabular.cpp b/src/mathed/InsetMathTabular.cpp index 2e17fb4012..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 { @@ -46,15 +46,19 @@ Inset * InsetMathTabular::clone() const } -bool InsetMathTabular::metrics(MetricsInfo & mi, Dimension & dim) const +void InsetMathTabular::metrics(MetricsInfo & mi, Dimension & dim) const { FontSetChanger dummy(mi.base, "textnormal"); InsetMathGrid::metrics(mi, dim); dim.wid += 6; - if (dim_ == dim) - return false; - dim_ = dim; - return true; +} + + +Dimension const InsetMathTabular::dimension(BufferView const & bv) const +{ + Dimension dim = InsetMathGrid::dimension(bv); + dim.wid += 6; + return dim; }