From a2ff5dd7acfe418da838a952e45821589e85199f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 30 May 2002 09:51:28 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4296 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 4 ++++ src/lyxfunc.C | 18 ++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 86ae7a25b1..f4d8ac514a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-03-30 André Pönitz + + * lyxfunc.C: mathed font changes + 2002-05-30 John Levon * LaTeX.C: diff --git a/src/lyxfunc.C b/src/lyxfunc.C index ae296f9333..c5dfc10413 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -537,6 +537,8 @@ FuncStatus LyXFunc::getStatus(kb_action action, flag.setOnOff(type == LM_OT_EQNARRAY); } else if (argument == "align") { flag.setOnOff(type == LM_OT_ALIGN); + } else if (argument == "none") { + flag.setOnOff(type == LM_OT_NONE); } else { disable = true; } @@ -723,28 +725,28 @@ FuncStatus LyXFunc::getStatus(kb_action action, } } else { - MathTextCodes tc = mathcursor->getLastCode(); + string tc = mathcursor->getLastCode(); switch (action) { case LFUN_BOLD: - flag.setOnOff(tc == LM_TC_BF); + flag.setOnOff(tc == "mathbf"); break; case LFUN_SANS: - flag.setOnOff(tc == LM_TC_SF); + flag.setOnOff(tc == "mathsf"); break; case LFUN_EMPH: - flag.setOnOff(tc == LM_TC_CAL); + flag.setOnOff(tc == "mathcal"); break; case LFUN_ROMAN: - flag.setOnOff(tc == LM_TC_RM); + flag.setOnOff(tc == "mathrm"); break; case LFUN_CODE: - flag.setOnOff(tc == LM_TC_TT); + flag.setOnOff(tc == "mathtt"); break; case LFUN_NOUN: - flag.setOnOff(tc == LM_TC_BB); + flag.setOnOff(tc == "mathbb"); break; case LFUN_DEFAULT: - flag.setOnOff(tc == LM_TC_VAR); + flag.setOnOff(tc == "mathnormal"); break; default: break;