commit aa82c1cc19aeed31feb3da48f3b127d11b4b4ed6
Author: Uwe Stöhr <[email protected]>
Date:   Thu Nov 6 00:31:42 2014 +0100

    InsetFootlike.cpp: disallow to use listings in foot-like insets
    
    - fixes bug #9321 also for branch

diff --git a/src/insets/InsetFootlike.cpp b/src/insets/InsetFootlike.cpp
index afd2329..05d2ba8 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 477596c..c38e3b4 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
 

Reply via email to