]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathEnv.h
Fix a crash with uninitialized buffer member of MathData
[lyx.git] / src / mathed / InsetMathEnv.h
index 985f57a322ca93e97b52d61e997ca215c8f8e324..9bc338d90482e4f16db20dde75fa334cf2b79a81 100644 (file)
@@ -14,8 +14,6 @@
 
 #include "InsetMathNest.h"
 
-#include <string>
-
 
 namespace lyx {
 
@@ -24,7 +22,7 @@ namespace lyx {
 class InsetMathEnv : public InsetMathNest {
 public:
        ///
-       InsetMathEnv(docstring const & name_);
+       InsetMathEnv(Buffer * buf, docstring const & name_);
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -35,6 +33,8 @@ public:
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void infoize(odocstream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_ENV_CODE; }
 
 private:
        virtual Inset * clone() const;