commit b6f8a84a359d717a5d87f58a3403b3c6b64440e3 Author: Enrico Forestieri <for...@lyx.org> Date: Mon Mar 27 15:00:43 2017 +0200
Fix #9732: Inconsistent font properties for the preview and superscript insets --- src/insets/InsetPreview.h | 2 ++ src/insets/InsetScript.h | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/insets/InsetPreview.h b/src/insets/InsetPreview.h index f2bfdd5..f0808d7 100644 --- a/src/insets/InsetPreview.h +++ b/src/insets/InsetPreview.h @@ -46,6 +46,8 @@ public: bool neverIndent() const { return true; } + bool inheritFont() const { return false; } + InsetCode lyxCode() const { return PREVIEW_CODE; } docstring layoutName() const { return from_ascii("Preview"); } diff --git a/src/insets/InsetScript.h b/src/insets/InsetScript.h index 11864d3..3107b62 100644 --- a/src/insets/InsetScript.h +++ b/src/insets/InsetScript.h @@ -86,6 +86,8 @@ public: /// bool neverIndent() const { return true; } /// + bool inheritFont() const { return false; } + /// int plaintext(odocstringstream & ods, OutputParams const & op, size_t max_length = INT_MAX) const; ///