]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPar.cpp
Fix drawing of empty boxes
[lyx.git] / src / mathed / InsetMathPar.cpp
index 38fc9bfc43be051cf2cb949a6bfa382dbc85b8f4..e1227ac4af12cb3531b397a4ff7a60c4aec67a02 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include <config.h>
 
 #include "InsetMathPar.h"
+
 #include "MathData.h"
 #include "MathStream.h"
-#include "support/std_ostream.h"
 
+#include "MetricsInfo.h"
+
+#include <ostream>
 
 namespace lyx {
 
-InsetMathPar::InsetMathPar(MathData const & ar)
+InsetMathPar::InsetMathPar(Buffer * buf, MathData const & ar)
+       : InsetMathHull(buf)
 {
        cells_[0] = ar;
 }
@@ -26,14 +30,14 @@ InsetMathPar::InsetMathPar(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);
 }