]> git.lyx.org Git - features.git/commitdiff
Fix #9732: Inconsistent font properties for the preview and superscript insets
authorEnrico Forestieri <forenr@lyx.org>
Mon, 27 Mar 2017 13:00:43 +0000 (15:00 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 27 Mar 2017 13:00:43 +0000 (15:00 +0200)
src/insets/InsetPreview.h
src/insets/InsetScript.h

index f2bfdd535f6bb28f14bb54cbf877373a8ef07203..f0808d7246733fdc54352eb7b25ce6f51d3af46e 100644 (file)
@@ -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"); }
index 11864d305c4a39e01d37939ad7ed6ef8fff83751..3107b6255dd24c28a837bd42dc5f7d463f875204 100644 (file)
@@ -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;
        ///