]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSymbol.h
Properly fix bug 3258.
[lyx.git] / src / mathed / InsetMathSymbol.h
index a64c54a5df50c231c4aaabf89dc9212a4b9cd7a8..60f4028fb063264d21722472b7b9da4375ec85cf 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "InsetMath.h"
 
+#include "Font.h"
 
 namespace lyx {
 
@@ -36,8 +37,6 @@ public:
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
-       int width() const { return width_; }
-       ///
        int kerning() const { return kerning_; }
 
        ///
@@ -73,13 +72,11 @@ public:
        void infoize2(odocstream & os) const;
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        ///
        latexkeys const * sym_;
        ///
        mutable int h_;
-       /// cached width
-       mutable int width_;
        /// cached superscript kerning
        mutable int kerning_;
        ///