mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 14:20:05 +00:00
* src/Text3.cpp:
- disallow comments and greyedout notes inside commands (sections etc.) This fixes bug 4180 partially (the change is still possible via the dialog). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23917 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d252730dff
commit
39cf72b803
@ -1910,6 +1910,9 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
break;
|
break;
|
||||||
case LFUN_NOTE_INSERT:
|
case LFUN_NOTE_INSERT:
|
||||||
code = NOTE_CODE;
|
code = NOTE_CODE;
|
||||||
|
// in commands (sections etc., only Notes are allowed)
|
||||||
|
enable = (cmd.argument().empty() || cmd.getArg(0) == "Note" ||
|
||||||
|
!cur.paragraph().layout().isCommand());
|
||||||
break;
|
break;
|
||||||
case LFUN_FLEX_INSERT: {
|
case LFUN_FLEX_INSERT: {
|
||||||
code = FLEX_CODE;
|
code = FLEX_CODE;
|
||||||
|
Loading…
Reference in New Issue
Block a user