mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
2e218e3263
commit
18d401aab8
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user