]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.h
"fix" bug #3332 (plain text export depends on the menu language)
[lyx.git] / src / mathed / InsetMathChar.h
index 91bd1599394d4b3290b1fe870c22b37f6cc14961..bc357bcadba16356afc1bf5a6e909109be785592 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "InsetMath.h"
 
+#include "Font.h"
 
 namespace lyx {
 
@@ -31,8 +32,6 @@ public:
        ///
        void drawT(TextPainter &, int x, int y) const;
        ///
-       int width() const { return width_; }
-       ///
        int kerning() const { return kerning_; }
 
        ///
@@ -51,13 +50,13 @@ public:
        bool isRelOp() const;
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        /// the character
        char_type char_;
-       /// cached width
-       mutable int width_;
        /// cached kerning for superscript
        mutable int kerning_;
+       ///
+       mutable Font font_cache_;
 };
 
 } // namespace lyx