- InsetCaption.cpp: margin notes and footnotes are not allowed in captions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35073
a592a061-630c-0410-9148-
cb99ea01b6c8
{
switch (code) {
// code that is not allowed in a caption
- case FLOAT_CODE:
- case TABULAR_CODE:
- case WRAP_CODE:
case CAPTION_CODE:
+ case FLOAT_CODE:
+ case FOOT_CODE:
case NEWPAGE_CODE:
+ case MARGIN_CODE:
case MATHMACRO_CODE:
+ case TABULAR_CODE:
+ case WRAP_CODE:
return false;
default:
return InsetText::insetAllowed(code);
bool InsetTabular::insetAllowed(InsetCode code) const
{
- switch (code)
- {
+ switch (code) {
+ case FLOAT_CODE:
case MARGIN_CODE:
case MATHMACRO_CODE:
+ case WRAP_CODE:
return false;
case CAPTION_CODE: