]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_colorinset.h
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_colorinset.h
index 6cab921f5c4e09a525d6dd6d4fecf511551942fd..604fb08098782eb77f1a6a4767d196c37ff787ed 100644 (file)
@@ -19,9 +19,7 @@
 class MathColorInset : public MathNestInset {
 public:
        ///
-       MathColorInset();
-       ///
-       std::auto_ptr<InsetBase> clone() const;
+       explicit MathColorInset(bool oldstyle);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// we write extra braces in any case...
@@ -37,8 +35,11 @@ public:
        ///
        void infoize(std::ostream & os) const;
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
        /// width of '[' in current font
        mutable int w_;
+       ///
+       bool oldstyle_;
 };
 
 #endif