From aa82c1cc19aeed31feb3da48f3b127d11b4b4ed6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Thu, 6 Nov 2014 00:31:42 +0100 Subject: [PATCH] InsetFootlike.cpp: disallow to use listings in foot-like insets - fixes bug #9321 also for branch --- src/insets/InsetFootlike.cpp | 3 ++- status.21x | 2 ++ 2 files changed, 4 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); } diff --git a/status.21x b/status.21x index 477596c64f..c38e3b4778 100644 --- a/status.21x +++ b/status.21x @@ -94,6 +94,8 @@ What's new - Fix mapping of ISO_Left_Tab key, which was erroneously assigned to Tab (instead of BackTab). +- Disallow to insert program listings to footnotes and margin notes (bug 9321). + * INTERNALS -- 2.39.5