commit 261625f4129fd6e8c7b73dbfc3ff8850632d05a4
Author: Juergen Spitzmueller <[email protected]>
Date:   Sat Jun 27 09:40:12 2020 +0200

    Force local switch for info insets that change language
    
    Fixes compilation of current English UG
---
 src/insets/InsetInfo.cpp |    8 ++++++++
 src/insets/InsetInfo.h   |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp
index b6fc541..0847106 100644
--- a/src/insets/InsetInfo.cpp
+++ b/src/insets/InsetInfo.cpp
@@ -749,6 +749,14 @@ bool InsetInfo::forceLTR(OutputParams const &) const
 }
 
 
+bool InsetInfo::forceLocalFontSwitch() const
+{
+       return params_.type == InsetInfoParams::MENU_INFO
+               || params_.type == InsetInfoParams::SHORTCUTS_INFO
+               || params_.type == InsetInfoParams::L7N_INFO;
+}
+
+
 void InsetInfo::updateBuffer(ParIterator const & it, UpdateType utype, bool 
const deleted) {
        // If the Buffer is a clone, then we neither need nor want to do any
        // of what follows. We want, rather, just to inherit how things were
diff --git a/src/insets/InsetInfo.h b/src/insets/InsetInfo.h
index c9fb838..b130ab7 100644
--- a/src/insets/InsetInfo.h
+++ b/src/insets/InsetInfo.h
@@ -198,6 +198,8 @@ public:
        /// Force inset into LTR environment if surroundings are RTL
        bool forceLTR(OutputParams const &) const;
        ///
+       bool forceLocalFontSwitch() const;
+       ///
        void setInfo(std::string const & info);
        ///
        void updateBuffer(ParIterator const & it, UpdateType utype, bool const 
deleted = false);
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to