]> git.lyx.org Git - lyx.git/commitdiff
InsetTabular.cpp: output the caption for docbook
authorUwe Stöhr <uwestoehr@web.de>
Thu, 12 Feb 2009 02:31:00 +0000 (02:31 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 12 Feb 2009 02:31:00 +0000 (02:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28462 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index ecd8004b8e925dbaabb391246502aa6df03a346b..daf4a3634b73d9777087592c3becf31e2fc77eb2 100644 (file)
@@ -2514,11 +2514,12 @@ int Tabular::docbook(odocstream & os, OutputParams const & runparams) const
        //+---------------------------------------------------------------------
 
        // output header info
-       if (haveLTHead() || haveLTFirstHead()) {
+       if (haveLTHead() || haveLTFirstHead()|| haveLTCaption()) {
                os << "<thead>\n";
                ++ret;
                for (row_type i = 0; i < row_info.size(); ++i) {
-                       if (row_info[i].endhead || row_info[i].endfirsthead) {
+                       if (row_info[i].endhead || row_info[i].endfirsthead
+                               || row_info[i].caption) {
                                ret += docbookRow(os, i, runparams);
                        }
                }