From: Uwe Stöhr Date: Wed, 11 Feb 2009 01:30:20 +0000 (+0000) Subject: InsetTabular.cpp: Insert a caption, when a longtable row is marked to be the caption... X-Git-Tag: 2.0.0~7257 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8bbd9f254d347a8b1a85f2bb18b052a981043879;p=features.git InsetTabular.cpp: Insert a caption, when a longtable row is marked to be the caption, otherwise the LaTeX output would be is incorrect git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28440 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 3afcc41549..a966d40164 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -1750,8 +1750,9 @@ Tabular::idx_type Tabular::setLTCaption(row_type row, bool what) setBottomLine(i, false); setLeftLine(i, false); setRightLine(i, false); - // FIXME: when a row is set as caption, then also insert a caption - // dispatch(FuncRequest(LFUN_CAPTION_INSERT)); + // When a row is set as caption, then also insert a caption. Otherwise + // the LaTeX output is broken, when the user don't add a caption. + dispatch(FuncRequest(LFUN_CAPTION_INSERT)); } else { unsetMultiColumn(i); // FIXME: when unsetting a caption row, also all existing captions