]> git.lyx.org Git - features.git/commitdiff
InsetFootlike.cpp: disallow to use listings in foot-like insets
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 5 Nov 2014 23:31:42 +0000 (00:31 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 5 Nov 2014 23:31:42 +0000 (00:31 +0100)
- fixes bug #9321 also for branch

src/insets/InsetFootlike.cpp
status.21x

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);
 }
index 477596c64f1e07240c30bd0682fed16a1784a21d..c38e3b47780b496450b5b7fb5f7ca3493e737d32 100644 (file)
@@ -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