From: Juergen Spitzmueller Date: Thu, 18 Jun 2015 12:17:18 +0000 (+0200) Subject: Force local font switch in caption. X-Git-Tag: 2.2.0alpha1~510 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=406d71013189d79c223479aa7336073f8216e962;p=lyx.git 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 cd99455b2e..26b3b26041 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,