]> git.lyx.org Git - features.git/commitdiff
Force local font switch in caption.
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 18 Jun 2015 12:17:18 +0000 (14:17 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 18 Jun 2015 12:17:18 +0000 (14:17 +0200)
It is needed with polyglossia. With babel, it does not harm (and looks
more sensible).

src/insets/InsetCaption.h

index cd99455b2e5fb86c000ff3317a9d7a983f28eea9..26b3b260418560f050aa032d1823a391fa658c50 100644 (file)
@@ -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,