From: Vincent van Ravesteijn Date: Sat, 21 Nov 2009 14:49:41 +0000 (+0000) Subject: Do not allow a program listing to be in a font changing command. X-Git-Tag: 2.0.0~5066 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=902c377ee3801cff14fa1d0a67220994802bd0fd;p=features.git Do not allow a program listing to be in a font changing command. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32124 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetListings.h b/src/insets/InsetListings.h index 4a11607754..8883b98343 100644 --- a/src/insets/InsetListings.h +++ b/src/insets/InsetListings.h @@ -41,6 +41,8 @@ private: /// bool isLabeled() const { return true; } /// + bool noFontChange() const { return true; } + /// InsetCode lyxCode() const { return LISTINGS_CODE; } /// lstinline is inlined, normal listing is displayed DisplayType display() const;