X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFontOld.h;h=261696d104465b222517338878e61e068849f5a3;hb=d85cf3218a14f5b7419dbc6b6796e65ff5dbfc74;hp=c27bfa6658b7a39b9c13407324f9454f46df7de5;hpb=ff4460603e3888948b46f0ab5bfa69a862d538ad;p=lyx.git diff --git a/src/mathed/InsetMathFontOld.h b/src/mathed/InsetMathFontOld.h index c27bfa6658..261696d104 100644 --- a/src/mathed/InsetMathFontOld.h +++ b/src/mathed/InsetMathFontOld.h @@ -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; } /// @@ -49,9 +49,13 @@ public: InsetCode lyxCode() const { return MATH_FONTOLD_CODE; } private: + std::string font() const; + /// virtual Inset * clone() const; /// the font to be used on screen latexkeys const * key_; + /// the inherited mode + mutable mode_type current_mode_; };