Skip to content

Commit

Permalink
PDF generation stops when image with caption is included in a table.
Browse files Browse the repository at this point in the history
- 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 1d77a4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions doc/manual.sty
Expand Up @@ -31,3 +31,10 @@
\fancyfoot[CO]{\fancyplain{}{}} \fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{}} \fancyfoot[RO]{\fancyplain{}{}}


% Define caption that is also suitable in a table
\makeatletter
\def\doxyfigcaption{%
\refstepcounter{figure}%
\@dblarg{\@caption{figure}}}
\makeatother

2 changes: 1 addition & 1 deletion src/latexdocvisitor.cpp
Expand Up @@ -947,7 +947,7 @@ void LatexDocVisitor::visitPre(DocHtmlTable *t)
if (t->hasCaption()) if (t->hasCaption())
{ {
DocHtmlCaption *c = t->caption(); DocHtmlCaption *c = t->caption();
m_t << "\\doxyfigcaption{"; m_t << "\\caption{";
visitCaption(this, c->children()); visitCaption(this, c->children());
m_t << "}"; m_t << "}";
m_t << "\\label{" << stripPath(c->file()) << "_" << c->anchor() << "}"; m_t << "\\label{" << stripPath(c->file()) << "_" << c->anchor() << "}";
Expand Down

0 comments on commit 1d77a4e

Please sign in to comment.