From d9738adfd71cf7ce47615722c4109166d3bb8a77 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 12 Sep 2001 13:23:39 +0000 Subject: [PATCH] \hat & subscript git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2742 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 2 +- src/mathed/math_decorationinset.C | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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"; } -- 2.39.2