]> git.lyx.org Git - lyx.git/commitdiff
Force local switch for info insets that change language
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 27 Jun 2020 07:40:12 +0000 (09:40 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 27 Jun 2020 07:40:12 +0000 (09:40 +0200)
Fixes compilation of current English UG

src/insets/InsetInfo.cpp
src/insets/InsetInfo.h

index b6fc541793d8c1704a1f360299da94329acce483..0847106dc01e3025c0997f13d2f0f0fdac076543 100644 (file)
@@ -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
index c9fb838ea15df50779d899f031282022a2c13765..b130ab71b476b4c62282b55b72d9dbd848a65dfb 100644 (file)
@@ -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);