]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFontOld.h
Small improvement for bug #7509 as suggested by JMarc
[lyx.git] / src / mathed / InsetMathFontOld.h
index c27bfa6658b7a39b9c13407324f9454f46df7de5..3046d03d485d305ff30aa55cd41ef95f4de3fa2c 100644 (file)
@@ -25,8 +25,8 @@ class InsetMathFontOld : public InsetMathNest {
 public:
        ///
        explicit InsetMathFontOld(Buffer * buf, latexkeys const * key);
-       /// we are in text mode.
-       mode_type currentMode() const { return TEXT_MODE; }
+       /// we inherit the mode
+       mode_type currentMode() const { return current_mode_; }
        /// we write extra braces in any case...
        bool extraBraces() const { return true; }
        ///
@@ -52,6 +52,8 @@ private:
        virtual Inset * clone() const;
        /// the font to be used on screen
        latexkeys const * key_;
+       /// the inherited mode
+       mutable mode_type current_mode_;
 };