From e4f66e10320a423a95b7bcdc5102d58d3932a2d9 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 22 Nov 2009 18:37:08 +0000 Subject: [PATCH] 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 --- src/insets/InsetTabular.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.2