]> git.lyx.org Git - features.git/commitdiff
\hat & subscript
authorAndré Pönitz <poenitz@gmx.net>
Wed, 12 Sep 2001 13:23:39 +0000 (13:23 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 12 Sep 2001 13:23:39 +0000 (13:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2742 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C
src/mathed/math_decorationinset.C

index f33924586cd8276ad4c517aba22712a2fcb34fe9..e0138f54bbef202efa3ccacdfc9b5053c48d2e28 100644 (file)
@@ -1215,7 +1215,7 @@ void MathCursor::interpret(string const & s)
 
        if (s == "\\over" || s == "\\choose" || s == "\\atop") {
                MathArray ar = array();
-               MathInset * p = createMathInset(in_word_set(s.substr(1)));
+               MathInset * p = createMathInset(s.substr(1));
                p->cell(0).swap(array());
                pos() = 0;
                niceInsert(p);
index d620ed9223fe15fffe112b13b243e2c38c579ef1..0213ad027f65bd47b2e31ed4f1c582903443ff4d 100644 (file)
@@ -30,7 +30,11 @@ bool MathDecorationInset::upper() const
 
 bool MathDecorationInset::isScriptable() const
 {
-       return true;
+       return
+                       name_ == "overbrace" ||
+                       name_ == "underbrace" ||
+                       name_ == "overleftarrow" ||
+                       name_ == "overrightarrow";
 }