]> git.lyx.org Git - features.git/commit
Fix bug #11203
authorEnrico Forestieri <forenr@lyx.org>
Sun, 22 Jul 2018 20:22:13 +0000 (22:22 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 22 Jul 2018 20:22:13 +0000 (22:22 +0200)
commit16ca5290c0d619df23406275e6698594b90ce7ab
tree3dcf80011bc378fb8052d1ac334885c48e137b58
parent8ef7d1aaec53e2a5e3b4353a67527efc2deb8589
Fix bug #11203

Minted does not have a language option but it is possible to enter
this option in the LyX interface for compatibility with the listings
package, and also for letting to enter a language not present in the
gui. So, this option is only used for properly specifying a language
in a listing, unless it is entered in the document settings dialog.
This case was not foreseen and thus the option was being passed to
the package as is, causing havoc. With this commit the option is
still available but is used to set a default language for a new
listing in place of the default "tex" language used so far.
src/BufferParams.cpp
src/frontends/qt4/GuiListings.cpp
src/insets/InsetListings.cpp