X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFont.cpp;h=2d73d64710223259947fa958a33ade3e7043260c;hb=11a6b3c4c7a031fd3776f53c9c43f62116933cea;hp=a4675bf0d4d08f8703ba78388c01afd952f9966f;hpb=ed858d73e57ce7aa89e38c1bc4d799362edb0227;p=lyx.git diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index a4675bf0d4..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 { @@ -41,15 +44,11 @@ InsetMath::mode_type InsetMathFont::currentMode() const } -bool InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const +void InsetMathFont::metrics(MetricsInfo & mi, Dimension & dim) const { FontSetChanger dummy(mi.base, key_->name); cell(0).metrics(mi, dim); metricsMarkers(dim); - if (dim_ == dim) - return false; - dim_ = dim; - return true; } @@ -64,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); }