From: Scott Kostyshak Date: Mon, 7 Dec 2015 03:43:36 +0000 (-0500) Subject: Revert "InsetFootlike.cpp: disable listings inside footnotes" X-Git-Tag: 2.2.0beta1~450 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6631e736bd3c2a479e28d584e25bd38d2e0451c7;p=features.git Revert "InsetFootlike.cpp: disable listings inside footnotes" Although af8ba5e0 fixed #9321, it broke a valid use case that was reported by a user at #9785. Hopefully we can come up with a better fix for #9321. This reverts commit af8ba5e0696c0e1989effe4179c990a054bc06df. --- diff --git a/src/insets/InsetFootlike.cpp b/src/insets/InsetFootlike.cpp index cb92320cdf..5685e865bf 100644 --- a/src/insets/InsetFootlike.cpp +++ b/src/insets/InsetFootlike.cpp @@ -61,8 +61,7 @@ void InsetFootlike::write(ostream & os) const bool InsetFootlike::insetAllowed(InsetCode code) const { - if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE - || code == LISTINGS_CODE) + if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE) return false; return InsetCollapsable::insetAllowed(code); }