]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fontinset.C
no special treatment for scriptinsets
[lyx.git] / src / mathed / math_fontinset.C
index 9b1536ac91d7848d7da0de2efd63eb3c3a57f870..ef7cdb7393ce2889ff2c5348f1c7c6a71c03ff01 100644 (file)
@@ -29,6 +29,16 @@ MathInset * MathFontInset::clone() const
 }
 
 
+MathInset::mode_type MathFontInset::currentMode() const
+{
+       if (key_->extra == "mathmode")
+               return MATH_MODE;
+       if (key_->extra == "textmode")
+               return TEXT_MODE;
+       return UNDECIDED_MODE;
+}
+
+
 void MathFontInset::metrics(MathMetricsInfo & mi) const
 {
        MathFontSetChanger dummy(mi.base, key_->name.c_str());