summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-01-15 19:01:19 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-01-15 19:01:19 (GMT)
commit1d77a4ed407aaa24eae53f501d1a5ce38b352504 (patch)
tree813d0949ff416a1e0f8531a4a4d2887daca6be8a
parent7b0b7ef746ae15df3894847f5b43a29ae20c9599 (diff)
downloadDoxygen-1d77a4ed407aaa24eae53f501d1a5ce38b352504.zip
Doxygen-1d77a4ed407aaa24eae53f501d1a5ce38b352504.tar.gz
Doxygen-1d77a4ed407aaa24eae53f501d1a5ce38b352504.tar.bz2
PDF generation stops when image with caption is included in a table.
- patch should only be applied to images. - added doxyfigcaption to manual.sty for completeness, when in future a table with an image and caption might appear in the documentation.
-rw-r--r--doc/manual.sty7
-rw-r--r--src/latexdocvisitor.cpp2
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/manual.sty b/doc/manual.sty
index 80fbda6..643bd40 100644
--- a/doc/manual.sty
+++ b/doc/manual.sty
@@ -31,3 +31,10 @@
\fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{}}
+% Define caption that is also suitable in a table
+\makeatletter
+\def\doxyfigcaption{%
+\refstepcounter{figure}%
+\@dblarg{\@caption{figure}}}
+\makeatother
+
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index b8c2efe..e8bb119 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -947,7 +947,7 @@ void LatexDocVisitor::visitPre(DocHtmlTable *t)
if (t->hasCaption())
{
DocHtmlCaption *c = t->caption();
- m_t << "\\doxyfigcaption{";
+ m_t << "\\caption{";
visitCaption(this, c->children());
m_t << "}";
m_t << "\\label{" << stripPath(c->file()) << "_" << c->anchor() << "}";