]> git.lyx.org Git - features.git/commitdiff
Unset all caption rows and dissolve all captions in a long-table when converting...
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 22 Nov 2009 18:37:08 +0000 (18:37 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 22 Nov 2009 18:37:08 +0000 (18:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32155 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 2affeaaf51444955f615301d9e10081d95591b1c..99551f75a6addff17948062d394258be60286e1f 100644 (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;