InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35895 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-10-29 01:29:53 +00:00
parent a0b84e0ba0
commit c378fede8b

View File

@ -4314,7 +4314,8 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
case Tabular::SET_LONGTABULAR:
// setting as longtable is not allowed when table is inside a float
if (cur.innerInsetOfType(FLOAT_CODE) != 0)
if (cur.innerInsetOfType(FLOAT_CODE) != 0
|| cur.innerInsetOfType(WRAP_CODE) != 0)
status.setEnabled(false);
status.setOnOff(tabular.is_long_tabular);
break;