From: André Pönitz Date: Sun, 7 Nov 2004 09:39:34 +0000 (+0000) Subject: Fix #1736 X-Git-Tag: 1.6.10~14859 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ff7bf848250ca76e89e692792423169158089603;p=lyx.git Fix #1736 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9192 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/ui/stdmenus.ui b/lib/ui/stdmenus.ui index d839b3532f..ed5b41a0ed 100644 --- a/lib/ui/stdmenus.ui +++ b/lib/ui/stdmenus.ui @@ -258,8 +258,8 @@ Menuset End Menu "insert_formatting" - Item "Superscript|S" "command-sequence math-mode ; math-superscript ; font-free-apply; " - Item "Subscript|u" "command-sequence math-mode ; math-subscript ; font-free-apply; " + Item "Superscript|S" "command-sequence math-mode on; math-superscript ; font-free-apply; " + Item "Subscript|u" "command-sequence math-mode on; math-subscript ; font-free-apply; " Separator Item "Protected Space|r" "space-insert protected" Item "Inter-word Space|w" "space-insert normal" @@ -275,14 +275,14 @@ Menuset End Menu "insert_math" - Item "Inline Formula|I" "math-mode" + Item "Inline Formula|I" "math-mode on" Item "Display Formula|D" "math-display" - Item "Eqnarray Environment|E" "command-sequence math-mode; math-mutate eqnarray;" - Item "AMS align Environment|a" "command-sequence math-mode; math-mutate align;" - Item "AMS alignat Environment|t" "command-sequence math-mode; math-mutate alignat;" - Item "AMS flalign Environment|f" "command-sequence math-mode; math-mutate flalign;" - Item "AMS gather Environment|g" "command-sequence math-mode; math-mutate gather;" - Item "AMS multline Environment|m" "command-sequence math-mode; math-mutate multline;" + Item "Eqnarray Environment|E" "command-sequence math-mode on; math-mutate eqnarray;" + Item "AMS align Environment|a" "command-sequence math-mode on; math-mutate align;" + Item "AMS alignat Environment|t" "command-sequence math-mode on; math-mutate alignat;" + Item "AMS flalign Environment|f" "command-sequence math-mode on; math-mutate flalign;" + Item "AMS gather Environment|g" "command-sequence math-mode on; math-mutate gather;" + Item "AMS multline Environment|m" "command-sequence math-mode on; math-mutate multline;" Separator Item "Array Environment|y" "math-matrix 2 2" Item "Cases Environment|C" "math-insert \cases" diff --git a/src/mathed/math_data.C b/src/mathed/math_data.C index 7c17e77e11..e466a7178f 100644 --- a/src/mathed/math_data.C +++ b/src/mathed/math_data.C @@ -410,7 +410,7 @@ int MathArray::dist(int x, int y) const void MathArray::setXY(int x, int y) const { - lyxerr << "setting position cache for MathArray " << this << std::endl; + //lyxerr << "setting position cache for MathArray " << this << std::endl; theCoords.arrays_.add(this, x, y); } diff --git a/src/mathed/math_nestinset.C b/src/mathed/math_nestinset.C index 5eaad59db7..7648cf26ca 100644 --- a/src/mathed/math_nestinset.C +++ b/src/mathed/math_nestinset.C @@ -684,6 +684,9 @@ void MathNestInset::priv_dispatch(LCursor & cur, FuncRequest & cmd) case LFUN_MATH_MODE: #if 1 + // ignore math-mode on when already in math mode + if (currentMode() == InsetBase::MATH_MODE && cmd.argument == "on") + break; cur.macroModeClose(); selClearOrDel(cur); cur.plainInsert(MathAtom(new MathMBoxInset(cur.bv())));