From af8ba5e0696c0e1989effe4179c990a054bc06df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Tue, 4 Nov 2014 23:44:10 +0100 Subject: [PATCH] InsetFootlike.cpp: disable listings inside footnotes fixes bug #9321 --- src/insets/InsetFootlike.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetFootlike.cpp b/src/insets/InsetFootlike.cpp index afd2329530..05d2ba8717 100644 --- a/src/insets/InsetFootlike.cpp +++ b/src/insets/InsetFootlike.cpp @@ -57,7 +57,8 @@ void InsetFootlike::write(ostream & os) const bool InsetFootlike::insetAllowed(InsetCode code) const { - if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE) + if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE + || code == LISTINGS_CODE) return false; return InsetCollapsable::insetAllowed(code); } -- 2.39.2