From: André Pönitz Date: Wed, 12 Sep 2001 13:23:39 +0000 (+0000) Subject: \hat & subscript X-Git-Tag: 1.6.10~20611 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d9738adfd71cf7ce47615722c4109166d3bb8a77;p=features.git \hat & subscript git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2742 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index f33924586c..e0138f54bb 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -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); diff --git a/src/mathed/math_decorationinset.C b/src/mathed/math_decorationinset.C index d620ed9223..0213ad027f 100644 --- a/src/mathed/math_decorationinset.C +++ b/src/mathed/math_decorationinset.C @@ -30,7 +30,11 @@ bool MathDecorationInset::upper() const bool MathDecorationInset::isScriptable() const { - return true; + return + name_ == "overbrace" || + name_ == "underbrace" || + name_ == "overleftarrow" || + name_ == "overrightarrow"; }