branch: Move the contents of a row into the caption when setting a row as a longtable caption.

see r32156.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32172 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-11-23 23:26:33 +00:00
parent f1dfaa091b
commit 4cb580a1c0
2 changed files with 6 additions and 2 deletions

View File

@ -4724,11 +4724,12 @@ void InsetTabular::tabularFeatures(Cursor & cur,
cur.pit() = 0;
cur.pos() = 0;
cur.setSelection(false);
if (set)
if (set) {
// When a row is set as caption, then also insert
// a caption. Otherwise the LaTeX output is broken.
lyx::dispatch(FuncRequest(LFUN_INSET_SELECT_ALL));
lyx::dispatch(FuncRequest(LFUN_CAPTION_INSERT));
else {
} else {
FuncRequest fr(LFUN_INSET_DISSOLVE);
if (lyx::getStatus(fr).enabled())
lyx::dispatch(fr);

View File

@ -318,6 +318,9 @@ What's new
- Dissolve the caption when unsetting a longtable caption row (bug 5754),
and when converting a longtable into a normal table.
- Move the contents of a table row into the caption when setting the row
as a longtable caption row.
- Correctly position the cursor after pasting to a multi-cell math inset
(bug 6342).