Also OK for branch?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28494 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-02-14 21:39:15 +00:00
parent fe980636db
commit 8d69d174c5

View File

@ -2935,7 +2935,8 @@ void InsetTabular::setBuffer(Buffer & buf)
bool InsetTabular::insetAllowed(InsetCode code) const
{
if (code == MATHMACRO_CODE)
if (code == MATHMACRO_CODE
|| (code == CAPTION_CODE && !tabular.is_long_tabular))
return false;
return true;