]> git.lyx.org Git - features.git/commitdiff
Revert "InsetFootlike.cpp: disable listings inside footnotes"
authorScott Kostyshak <skostysh@lyx.org>
Mon, 7 Dec 2015 03:43:36 +0000 (22:43 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Mon, 7 Dec 2015 06:52:11 +0000 (01:52 -0500)
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.

src/insets/InsetFootlike.cpp

index cb92320cdfa048ff5a04c6ed28f6dec3888d7e97..5685e865bfa8407ed6b6eec42966e3b9b0924127 100644 (file)
@@ -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);
 }