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

see r32155.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32171 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-11-23 23:21:57 +00:00
parent b51e07abf6
commit f1dfaa091b
2 changed files with 10 additions and 1 deletions

View File

@ -4624,6 +4624,14 @@ void InsetTabular::tabularFeatures(Cursor & cur,
break; break;
case Tabular::UNSET_LONGTABULAR: 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; tabular.is_long_tabular = false;
break; break;

View File

@ -315,7 +315,8 @@ What's new
- Allow PgUp and PgDown to position the cursor on the first or last row. - Allow PgUp and PgDown to position the cursor on the first or last row.
- Dissolve the caption when unsetting a longtable caption row (bug 5754). - Dissolve the caption when unsetting a longtable caption row (bug 5754),
and when converting a longtable into a normal table.
- Correctly position the cursor after pasting to a multi-cell math inset - Correctly position the cursor after pasting to a multi-cell math inset
(bug 6342). (bug 6342).