]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathColor.h
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathColor.h
index d3ea0501462b261240bc76d8f876f4f288a43305..c09e14a117e5b02af1886123ced194694d1d5126 100644 (file)
@@ -34,6 +34,8 @@ public:
        void draw(PainterInfo & pi, int x, int y) const override;
        /// we need package color
        void validate(LaTeXFeatures & features) const override;
+       /// we inherit the mode
+       mode_type currentMode() const override { return current_mode_; }
        ///
        void write(TeXMathStream & os) const override;
        /// FIXME XHTML For now, we do nothing with color.
@@ -53,6 +55,8 @@ private:
        bool oldstyle_;
        /// Our color. Only valid LaTeX colors are allowed.
        docstring color_;
+       /// the inherited mode
+       mutable mode_type current_mode_;
 };