]> git.lyx.org Git - features.git/commitdiff
revert 17429
authorAndré Pönitz <poenitz@gmx.net>
Tue, 13 Mar 2007 15:20:26 +0000 (15:20 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 13 Mar 2007 15:20:26 +0000 (15:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17436 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.C

index b41577c6b380a588843148565183f5b90ae3cefb..84883636161e650fb5e3f0bc8df5c288af326fd9 100644 (file)
@@ -1206,16 +1206,9 @@ void InsetMathNest::lfunMouseRelease(LCursor & cur, FuncRequest & cmd)
 }
 
 
-// return false when we leave the formula
 bool InsetMathNest::interpretChar(LCursor & cur, char_type c)
 {
        //lyxerr << "interpret 2: '" << c << "'" << endl;
-       if (currentMode() == TEXT_MODE && (c == '^' || c == '_')) {
-               theLyXFunc().setMessage(
-                       _("Superscripts and subscripts are not allowed in math text mode."));
-               return true;
-       }
-
        docstring save_selection;
        if (c == '^' || c == '_')
                save_selection = grabAndEraseSelection(cur);