InsetFootlike.cpp: disallow to use listings in foot-like insets

- fixes bug #9321 also for branch
This commit is contained in:
Uwe Stöhr 2014-11-06 00:31:42 +01:00
parent 6cefd29d41
commit aa82c1cc19
2 changed files with 4 additions and 1 deletions

View 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);
}

View 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