InsetFootlike.cpp: disable listings inside footnotes

fixes bug #9321
This commit is contained in:
Uwe Stöhr 2014-11-04 23:44:10 +01:00
parent d1858b89d0
commit af8ba5e069

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