X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFont.cpp;h=2d73d64710223259947fa958a33ade3e7043260c;hb=11a6b3c4c7a031fd3776f53c9c43f62116933cea;hp=b6af0679c7b69622f4195029c1f11d24e842765c;hpb=237c132c1e6fc720b87f2fea6deb18a8395cbe0a;p=lyx.git diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index b6af0679c7..2d73d64710 100644 --- a/src/mathed/InsetMathFont.cpp +++ b/src/mathed/InsetMathFont.cpp @@ -11,11 +11,14 @@ #include #include "InsetMathFont.h" + +#include "LaTeXFeatures.h" #include "MathData.h" #include "MathStream.h" #include "MathParser.h" -#include "LaTeXFeatures.h" -#include "support/std_ostream.h" +#include "MetricsInfo.h" + +#include namespace lyx { @@ -46,7 +49,6 @@ void InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const FontSetChanger dummy(mi.base, key_->name); cell(0).metrics(mi, dim); metricsMarkers(dim); - dim_ = dim; } @@ -61,7 +63,9 @@ void InsetMathFont::draw(PainterInfo & pi, int x, int y) const void InsetMathFont::metricsT(TextMetricsInfo const & mi, Dimension &) const { - cell(0).metricsT(mi, dim_); + // FIXME: BROKEN! + Dimension dim; + cell(0).metricsT(mi, dim); }