Do not toggle on (all) layouts in force plain

Fix for #12179.
This commit is contained in:
Daniel Ramoeller 2021-03-06 11:50:11 +01:00 committed by Jean-Marc Lasgouttes
parent 25ad5c8b3e
commit 5d269df606

View File

@ -3519,7 +3519,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
docstring const layout = resolveLayout(req_layout, cur);
enable = !owner_->forcePlainLayout() && !layout.empty();
status.setOnOff(isAlreadyLayout(layout, cur));
status.setOnOff(!owner_->forcePlainLayout() && isAlreadyLayout(layout, cur));
break;
}