]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathLefteqn.cpp
Improve the list of equations
[lyx.git] / src / mathed / InsetMathLefteqn.cpp
index 44e4412b81c50e195fb624f3ca4ff79f497d1fb6..176c7431cf5f53edc6ec079087d5690a5652ed5e 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 "InsetMathLefteqn.h"
-#include "MathData.h"
-#include "support/std_ostream.h"
+
+#include "support/docstream.h"
 
 
 namespace lyx {
 
-InsetMathLefteqn::InsetMathLefteqn()
-       : InsetMathNest(1)
+InsetMathLefteqn::InsetMathLefteqn(Buffer * buf)
+       : InsetMathNest(buf, 1)
 {}
 
 
@@ -28,17 +28,13 @@ Inset * InsetMathLefteqn::clone() const
 }
 
 
-bool InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const
+void InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
        dim.asc += 2;
        dim.des += 2;
        dim.wid = 4;
-       metricsMarkers(dim);
-       if (dim_ == dim)
-               return false;
-       dim_ = dim;
-       return true;
+       metricsMarkers(mi, dim);
 }