]> git.lyx.org Git - features.git/commitdiff
InsetTabular.cpp: Insert a caption, when a longtable row is marked to be the caption...
authorUwe Stöhr <uwestoehr@web.de>
Wed, 11 Feb 2009 01:30:20 +0000 (01:30 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 11 Feb 2009 01:30:20 +0000 (01:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28440 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 3afcc4154995626bc51b1407a72f0592de86330f..a966d40164e41d97100cdd1f97c1314f1a9c13b8 100644 (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