]> git.lyx.org Git - features.git/commitdiff
Fix longtable captions (#8933)
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 25 Jan 2014 08:32:57 +0000 (09:32 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 25 Jan 2014 08:33:23 +0000 (09:33 +0100)
Don't know why this code is now needed again (or why it had to be removed in the first place).

src/insets/InsetTabular.cpp

index e7f876e800bf664bb20855b7ef25d14972c47a4b..26df93fbed3f85f5d62cdfaa7c4173e1311ade9c 100644 (file)
@@ -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)