Unset all caption rows and dissolve all captions in a long-table when converting to a normal table.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32155 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-11-22 18:37:08 +00:00
parent 8384fa4123
commit e4f66e1032

View File

@ -4761,6 +4761,14 @@ void InsetTabular::tabularFeatures(Cursor & cur,
break;
case Tabular::UNSET_LONGTABULAR:
for (row_type i = 0; i < tabular.row_info.size(); ++i) {
if (tabular.ltCaption(i)) {
cur.idx() = tabular.cellIndex(i, 0);
cur.pit() = 0;
cur.pos() = 0;
tabularFeatures(cur, Tabular::TOGGLE_LTCAPTION);
}
}
tabular.is_long_tabular = false;
break;