From: Vincent van Ravesteijn Date: Sun, 22 Nov 2009 18:39:48 +0000 (+0000) Subject: Move the contents of a row into the caption when setting a row as a longtable caption. X-Git-Tag: 2.0.0~5044 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f961b605755866de6b27df591746c5ae06d6a335;p=features.git Move the contents of a row into the caption when setting a row as a longtable caption. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32156 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 99551f75a6..9b0abc9690 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -4888,11 +4888,12 @@ void InsetTabular::tabularFeatures(Cursor & cur, 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, "caption"); if (lyx::getStatus(fr).enabled()) lyx::dispatch(fr);