]> git.lyx.org Git - lyx.git/commitdiff
InsetFootlike.cpp: disable listings inside footnotes
authorUwe Stöhr <uwestoehr@lyx.org>
Tue, 4 Nov 2014 22:44:10 +0000 (23:44 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Tue, 4 Nov 2014 22:44:10 +0000 (23:44 +0100)
fixes bug #9321

src/insets/InsetFootlike.cpp

index afd23295307bb8d33da8bc6b29f4219728108ca9..05d2ba87173ac1fade4d569cef061be8c1b9a0fa 100644 (file)
@@ -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);
 }