commit 2b941da7fcd5b5567a011b62bc93bc0a9c4b5648
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Jan 25 09:32:57 2014 +0100
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 e7f876e..26df93f 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)