]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathPar.cpp
Rm dup "Float" in "Insert>Float>Figure Wrap Float"
[features.git] / src / mathed / InsetMathPar.cpp
index 0638b8eb6cfeb7a4371acab33b1e6e24564e42e2..2e72a02b2128c9a26ade3aa91c4ea6b4358ce0af 100644 (file)
@@ -15,6 +15,8 @@
 #include "MathData.h"
 #include "MathStream.h"
 
+#include "MetricsInfo.h"
+
 #include <ostream>
 
 namespace lyx {
@@ -28,19 +30,19 @@ 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);
 }
 
 
-void InsetMathPar::write(WriteStream & os) const
+void InsetMathPar::write(TeXMathStream & os) const
 {
        for (idx_type i = 0; i < nargs(); ++i)
                os << cell(i) << "\n";