summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2017-12-31 12:09:54 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2017-12-31 12:09:54 (GMT)
commit8afcb87097c92fd124282a998dad61ea2b16c7ec (patch)
treed36713cac2c4f23862f7ff8012e7d99f21e6a8ae /src/latexgen.cpp
parent232c85c6c58a02c3216e1f5af3728d3d2db908c2 (diff)
downloadDoxygen-8afcb87097c92fd124282a998dad61ea2b16c7ec.zip
Doxygen-8afcb87097c92fd124282a998dad61ea2b16c7ec.tar.gz
Doxygen-8afcb87097c92fd124282a998dad61ea2b16c7ec.tar.bz2
Bug 783134 - LaTeX output for \tparam block fails to compile when it contains a \code block
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index 6e52a84..1511dcb 100644
--- a/src/latexgen.cpp
+++ b/src/latexgen.cpp
@@ -92,7 +92,7 @@ void LatexCodeGenerator::codify(const char *str)
m_col+=spacesToNextTabStop;
p++;
break;
- case '\n': (usedTableLevels>0) ? m_t << "\\newline\n" : m_t << '\n'; m_col=0; p++;
+ case '\n': (usedTableLevels()>0) ? m_t << "\\newline\n" : m_t << '\n'; m_col=0; p++;
break;
default:
i=0;
@@ -1849,13 +1849,13 @@ void LatexGenerator::writeNonBreakableSpace(int)
void LatexGenerator::startDescTable(const char *title)
{
- usedTableLevels++;
+ incUsedTableLevels();
t << "\\begin{DoxyEnumFields}{" << title << "}" << endl;
}
void LatexGenerator::endDescTable()
{
- usedTableLevels--;
+ decUsedTableLevels();
t << "\\end{DoxyEnumFields}" << endl;
}
@@ -2198,7 +2198,7 @@ void LatexGenerator::lineBreak(const char *)
void LatexGenerator::startMemberDocSimple(bool isEnum)
{
- usedTableLevels++;
+ incUsedTableLevels();
if (isEnum)
{
t << "\\begin{DoxyEnumFields}{";
@@ -2214,7 +2214,7 @@ void LatexGenerator::startMemberDocSimple(bool isEnum)
void LatexGenerator::endMemberDocSimple(bool isEnum)
{
- usedTableLevels--;
+ decUsedTableLevels();
if (isEnum)
{
t << "\\end{DoxyEnumFields}" << endl;