From: Juergen Spitzmueller Date: Sat, 25 Jan 2014 08:32:57 +0000 (+0100) Subject: Fix longtable captions (#8933) X-Git-Tag: 2.1.0rc1~299 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2b941da7fcd5b5567a011b62bc93bc0a9c4b5648;p=features.git Fix longtable captions (#8933) Don't know why this code is now needed again (or why it had to be removed in the first place). --- diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index e7f876e800..26df93fbed 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -2447,6 +2447,14 @@ void Tabular::TeXLongtableHeaderFooter(otexstream & os, if (!is_long_tabular) return; + // caption handling + // the caption must be output before the headers + if (haveLTCaption()) { + for (row_type r = 0; r < nrows(); ++r) { + if (row_info[r].caption) + TeXRow(os, r, runparams); + } + } // output first header info if (haveLTFirstHead()) { if (endfirsthead.topDL)