]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBig.C
This commit fixes a crash when accessing a math inset. This was due to an invalid...
[lyx.git] / src / mathed / InsetMathBig.C
index 3b8b87abe38c38275da66b2d406f4d7bd24e5696..90900360df2217834f72ac4c003882939a7d60b3 100644 (file)
@@ -15,8 +15,6 @@
 #include "MathMLStream.h"
 #include "MathStream.h"
 
-#include "frontends/Application.h"
-#include "frontends/FontLoader.h"
 #include "frontends/FontMetrics.h"
 
 #include "support/lstrings.h"
@@ -65,8 +63,7 @@ double InsetMathBig::increase() const
 
 void InsetMathBig::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       double const h 
-               = theApp->fontLoader().metrics(mi.base.font).ascent('I');
+       double const h = theFontMetrics(mi.base.font).ascent('I');
        double const f = increase();
        dim_.wid = 6;
        dim_.asc = int(h + f * h);