]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPar.cpp
Fix drawing of empty boxes
[lyx.git] / src / mathed / InsetMathPar.cpp
index 0638b8eb6cfeb7a4371acab33b1e6e24564e42e2..e1227ac4af12cb3531b397a4ff7a60c4aec67a02 100644 (file)
@@ -15,6 +15,8 @@
 #include "MathData.h"
 #include "MathStream.h"
 
+#include "MetricsInfo.h"
+
 #include <ostream>
 
 namespace lyx {
@@ -28,14 +30,14 @@ InsetMathPar::InsetMathPar(Buffer * buf, MathData const & ar)
 
 void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       FontSetChanger dummy1(mi.base, "textnormal");
+       Changer dummy = mi.base.changeFontSet("textnormal");
        InsetMathGrid::metrics(mi, dim);
 }
 
 
 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
 {
-       FontSetChanger dummy1(pi.base, "textnormal");
+       Changer dummy = pi.base.changeFontSet("textnormal");
        InsetMathGrid::draw(pi, x, y);
 }