disable LFUN_LAYOUT_CHARACTER in ERT

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4812 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-07-30 22:58:54 +00:00
parent 2e218e3263
commit 18d401aab8
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-07-30 John Levon <levon@movementarian.org>
* lyxfunc.C: disable character dialog in ERT inset (partial fix)
2002-07-30 John Levon <levon@movementarian.org>
* lyxserver.h:

View File

@ -360,6 +360,10 @@ FuncStatus LyXFunc::getStatus(kb_action action,
disable = !Exporter::IsExportable(buf, "program");
break;
case LFUN_LAYOUT_CHARACTER:
disable = tli && tli->lyxCode() == Inset::ERT_CODE;
break;
case LFUN_LAYOUT_TABULAR:
disable = !tli
|| (tli->lyxCode() != Inset::TABULAR_CODE