Permalink
Browse files

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.
  • Loading branch information...
albert-github committed Jan 15, 2016
1 parent 7b0b7ef commit 1d77a4ed407aaa24eae53f501d1a5ce38b352504
Showing with 8 additions and 1 deletion.
  1. +7 −0 doc/manual.sty
  2. +1 −1 src/latexdocvisitor.cpp
View
@@ -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
View
@@ -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() << "}";

0 comments on commit 1d77a4e

Please sign in to comment.