mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
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:
parent
b51e07abf6
commit
f1dfaa091b
@ -4624,6 +4624,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;
|
||||
|
||||
|
@ -315,7 +315,8 @@ What's new
|
||||
|
||||
- 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
|
||||
(bug 6342).
|
||||
|
Loading…
Reference in New Issue
Block a user