v...@lyx.org schreef:
Author: vfr
Date: Sun Nov 22 19:37:08 2009
New Revision: 32155
URL: http://www.lyx.org/trac/changeset/32155
Log:
Unset all caption rows and dissolve all captions in a long-table when
converting to a normal table.
Modified:
lyx-devel/trunk/src/insets/InsetTabular.cpp
Modified: lyx-devel/trunk/src/insets/InsetTabular.cpp
==============================================================================
--- lyx-devel/trunk/src/insets/InsetTabular.cpp Sun Nov 22 19:35:36 2009
(r32154)
+++ lyx-devel/trunk/src/insets/InsetTabular.cpp Sun Nov 22 19:37:08 2009
(r32155)
@@ -4761,6 +4761,14 @@
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;
to Branch ?
Vincent