Fix #9732: Inconsistent font properties for the preview and superscript insets

(cherry picked from commit b6f8a84a35)
This commit is contained in:
Enrico Forestieri 2017-03-27 15:00:43 +02:00 committed by Richard Heck
parent 6836c75803
commit 9450cf7b12
3 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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;
///

View File

@ -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