From: Vincent van Ravesteijn Date: Sun, 22 Nov 2009 18:37:08 +0000 (+0000) Subject: Unset all caption rows and dissolve all captions in a long-table when converting... X-Git-Tag: 2.0.0~5045 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e4f66e10320a423a95b7bcdc5102d58d3932a2d9;p=features.git 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 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 2affeaaf51..99551f75a6 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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;