Skip to content

Commit 1d77a4e

Browse files
committed
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.
1 parent 7b0b7ef commit 1d77a4e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

doc/manual.sty

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,10 @@
3131
\fancyfoot[CO]{\fancyplain{}{}}
3232
\fancyfoot[RO]{\fancyplain{}{}}
3333

34+
% Define caption that is also suitable in a table
35+
\makeatletter
36+
\def\doxyfigcaption{%
37+
\refstepcounter{figure}%
38+
\@dblarg{\@caption{figure}}}
39+
\makeatother
40+

src/latexdocvisitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ void LatexDocVisitor::visitPre(DocHtmlTable *t)
947947
if (t->hasCaption())
948948
{
949949
DocHtmlCaption *c = t->caption();
950-
m_t << "\\doxyfigcaption{";
950+
m_t << "\\caption{";
951951
visitCaption(this, c->children());
952952
m_t << "}";
953953
m_t << "\\label{" << stripPath(c->file()) << "_" << c->anchor() << "}";

0 commit comments

Comments
 (0)