commit 5d269df60674df4b8f5f56cdf4e16c88f23df32b
Author: Daniel Ramoeller <[email protected]>
Date:   Sat Mar 6 11:50:11 2021 +0100

    Do not toggle on (all) layouts in force plain
    
    Fix for #12179.
---
 src/Text3.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Text3.cpp b/src/Text3.cpp
index 5c623fe..5e9f6cf 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -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;
        }
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to