]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetListings.h
Fix bug #6919 by splitting Inset::noFontChange() into inheritFont() and
[features.git] / src / insets / InsetListings.h
index 3741f6d0dbd3a1ead79934a9c3b329f7c60ef500..18125dc3bb6f0a765eb4cc2a27b4667f809a73e0 100644 (file)
@@ -40,8 +40,8 @@ public:
 private:
        ///
        bool isLabeled() const { return true; }
-       ///
-       bool noFontChange() const { return true; }
+       /// false is needed since listings do their own font handling.
+       bool inheritFont() const { return false; }
        ///
        InsetCode lyxCode() const { return LISTINGS_CODE; }
        /// lstinline is inlined, normal listing is displayed