From 9450cf7b1240237890d3d22852e6f1d91255abff Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 27 Mar 2017 15:00:43 +0200 Subject: [PATCH] Fix #9732: Inconsistent font properties for the preview and superscript insets (cherry picked from commit b6f8a84a359d717a5d87f58a3403b3c6b64440e3) --- src/insets/InsetPreview.h | 8 +++++--- src/insets/InsetScript.h | 2 ++ status.22x | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetPreview.h b/src/insets/InsetPreview.h index 1c80f3efd6..ddb481e74a 100644 --- a/src/insets/InsetPreview.h +++ b/src/insets/InsetPreview.h @@ -44,11 +44,13 @@ public: Inset * clone() const { return new InsetPreview(*this); } bool neverIndent() const { return true; } - + + bool inheritFont() const { return false; } + InsetCode lyxCode() const { return PREVIEW_CODE; } - + docstring layoutName() const { return from_ascii("Preview"); } - + bool descendable(BufferView const & /*bv*/) const { return true; } std::string contextMenuName() const diff --git a/src/insets/InsetScript.h b/src/insets/InsetScript.h index decfee37ae..5e5e1cf3e9 100644 --- a/src/insets/InsetScript.h +++ b/src/insets/InsetScript.h @@ -82,6 +82,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; /// diff --git a/status.22x b/status.22x index 8cea812b7d..17521d5657 100644 --- a/status.22x +++ b/status.22x @@ -227,6 +227,8 @@ What's new - Fix display of some text-mode accents in the citation preview (bug 9340). +- Fix font display in preview insets (bug 9732). + * INTERNALS -- 2.39.5