mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
Disallow InsetMarginals in InsetTabulars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34373 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
863e1eb35b
commit
5e978cf02c
@ -3131,11 +3131,18 @@ void InsetTabular::setBuffer(Buffer & buf)
|
|||||||
|
|
||||||
bool InsetTabular::insetAllowed(InsetCode code) const
|
bool InsetTabular::insetAllowed(InsetCode code) const
|
||||||
{
|
{
|
||||||
if (code == MATHMACRO_CODE
|
switch (code)
|
||||||
|| (code == CAPTION_CODE && !tabular.is_long_tabular))
|
{
|
||||||
|
case MARGIN_CODE:
|
||||||
|
case MATHMACRO_CODE:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
case CAPTION_CODE:
|
||||||
|
return tabular.is_long_tabular;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user