mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +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
|
||||
{
|
||||
if (code == MATHMACRO_CODE
|
||||
|| (code == CAPTION_CODE && !tabular.is_long_tabular))
|
||||
switch (code)
|
||||
{
|
||||
case MARGIN_CODE:
|
||||
case MATHMACRO_CODE:
|
||||
return false;
|
||||
|
||||
case CAPTION_CODE:
|
||||
return tabular.is_long_tabular;
|
||||
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user