mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
parent
d264b3d8fb
commit
0f5886b856
@ -3108,13 +3108,12 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
break;
|
||||
|
||||
case LFUN_LAYOUT: {
|
||||
enable = !cur.inset().forcePlainLayout();
|
||||
|
||||
DocumentClass const & tclass = cur.buffer()->params().documentClass();
|
||||
docstring layout = cmd.argument();
|
||||
if (layout.empty()) {
|
||||
DocumentClass const & tclass = cur.buffer()->params().documentClass();
|
||||
if (layout.empty())
|
||||
layout = tclass.defaultLayoutName();
|
||||
}
|
||||
enable = !cur.inset().forcePlainLayout() && tclass.hasLayout(layout);
|
||||
|
||||
flag.setOnOff(layout == cur.paragraph().layout().name());
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user