fix LFUN_MATH_MODE

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9403 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2004-12-27 18:26:11 +00:00
parent a839021d22
commit e3ff1652a1
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-12-27 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* text3.C: fix LFUN_MATH_MODE.
2004-12-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org> 2004-12-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* buffer_funcs.C (countWords): new function. Counts words between * buffer_funcs.C (countWords): new function. Counts words between

View File

@ -1318,6 +1318,10 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
case LFUN_MATH_IMPORT_SELECTION: case LFUN_MATH_IMPORT_SELECTION:
case LFUN_MATH_MODE: case LFUN_MATH_MODE:
if (cmd.argument == "on")
// don't pass "on" as argument
mathDispatch(cur, FuncRequest(LFUN_MATH_MODE), false);
else
mathDispatch(cur, cmd, false); mathDispatch(cur, cmd, false);
break; break;