commit 406d71013189d79c223479aa7336073f8216e962
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Thu Jun 18 14:17:18 2015 +0200

    Force local font switch in caption.
    
    It is needed with polyglossia. With babel, it does not harm (and looks
    more sensible).

diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h
index cd99455..26b3b26 100644
--- a/src/insets/InsetCaption.h
+++ b/src/insets/InsetCaption.h
@@ -42,6 +42,8 @@ private:
        ///
        bool neverIndent() const { return true; }
        ///
+       bool forceLocalFontSwitch() const { return true; }
+       ///
        InsetCode lyxCode() const { return CAPTION_CODE; }
        ///
        void cursorPos(BufferView const & bv,

Reply via email to