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
This commit is contained in:
Uwe Stöhr 2009-02-11 01:30:20 +00:00
parent 2d66dbb678
commit 8bbd9f254d

View File

@ -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