mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Toggle properly toolbar icons that set layout of a paragraph.
Fixes bug #9463.
This commit is contained in:
parent
8aa2d6b184
commit
ba0b847040
@ -3014,9 +3014,17 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
enable = theSpellChecker();
|
||||
break;
|
||||
|
||||
case LFUN_LAYOUT:
|
||||
case LFUN_LAYOUT: {
|
||||
enable = !cur.inset().forcePlainLayout();
|
||||
|
||||
docstring layout = cmd.argument();
|
||||
if (layout.empty()) {
|
||||
DocumentClass const & tclass = cur.buffer()->params().documentClass();
|
||||
layout = tclass.defaultLayoutName();
|
||||
}
|
||||
flag.setOnOff(layout == cur.paragraph().layout().name());
|
||||
break;
|
||||
}
|
||||
|
||||
case LFUN_ENVIRONMENT_SPLIT: {
|
||||
if (cmd.argument() == "outer") {
|
||||
|
Loading…
Reference in New Issue
Block a user