From 8bbd9f254d347a8b1a85f2bb18b052a981043879 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 11 Feb 2009 01:30:20 +0000 Subject: [PATCH] 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 --- src/insets/InsetTabular.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2