summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/latexdocvisitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index 4cba261..5404cf7 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -932,7 +932,7 @@ void LatexDocVisitor::visitPost(DocHtmlTable *t)
void LatexDocVisitor::visitPre(DocHtmlCaption *c)
{
if (m_hide) return;
- m_t << "\\end{" << getTableName(c->parent()) << "}\n\\centering\n\\caption{";
+ m_t << "\\end{" << getTableName(c->parent()->parent()) << "}\n\\centering\n\\caption{";
}
void LatexDocVisitor::visitPost(DocHtmlCaption *)