]> 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 4283014d81110ed960ccd90993b61ac6b3fa1289..ef7cdb7393ce2889ff2c5348f1c7c6a71c03ff01 100644 (file)
@@ -31,7 +31,11 @@ MathInset * MathFontInset::clone() const
 
 MathInset::mode_type MathFontInset::currentMode() const
 {
-       return key_->extra == "mathmode" ? MATH_MODE : TEXT_MODE;
+       if (key_->extra == "mathmode")
+               return MATH_MODE;
+       if (key_->extra == "textmode")
+               return TEXT_MODE;
+       return UNDECIDED_MODE;
 }