mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Revert "InsetFootlike.cpp: disable listings inside footnotes"
Althoughaa82c1cc
fixed #9321, it broke a valid use case that was reported by a user at #9785. Hopefully we can come up with a better fix for #9321. This reverts commitaa82c1cc19
.
This commit is contained in:
parent
6c41cd1d14
commit
20a70d3aba
@ -61,8 +61,7 @@ void InsetFootlike::write(ostream & os) const
|
||||
|
||||
bool InsetFootlike::insetAllowed(InsetCode code) const
|
||||
{
|
||||
if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE
|
||||
|| code == LISTINGS_CODE)
|
||||
if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE)
|
||||
return false;
|
||||
return InsetCollapsable::insetAllowed(code);
|
||||
}
|
||||
|
@ -116,6 +116,9 @@ What's new
|
||||
- Disable Apply button in InsetParams dialogs if there is no inset to apply
|
||||
to (bug 9386).
|
||||
|
||||
- Allow to insert program listings to footnotes and margin notes (fixes bug
|
||||
9785, but reintroduces bug 9321).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user