]> git.lyx.org Git - lyx.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, 9 Sep 2018 09:25:01 +0000 (11:25 +0200)
commit4862e00c1fb730b4fe332b9d7183fcf605f97ca4
tree9f24b6ac7aaa97b448d579ff744fe77b0ae98f77
parentae196dd70c76406a07f3623cfb40d7c9cc80372f
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.

(cherry picked from commit 16ca5290c0d619df23406275e6698594b90ce7ab)
src/BufferParams.cpp
src/frontends/qt4/GuiListings.cpp
src/insets/InsetListings.cpp
status.23x