summaryrefslogtreecommitdiffstats
path: root/src/ftvhelp.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-03-17 20:32:54 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-03-17 20:32:54 (GMT)
commitb1800e6e8923c5a1eeefb136103811135d5813bf (patch)
tree5c9d2280ca0cb07840bfa26ca4dbed5b3225d21f /src/ftvhelp.cpp
parentcff8111ed33af6033bd188868964d92ea3503188 (diff)
downloadDoxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.zip
Doxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.tar.gz
Doxygen-b1800e6e8923c5a1eeefb136103811135d5813bf.tar.bz2
Release-1.8.0
Diffstat (limited to 'src/ftvhelp.cpp')
-rw-r--r--src/ftvhelp.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 4951b03..4816b50 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -520,6 +520,7 @@ void FTVHelp::finalize()
*/
void FTVHelp::incContentsDepth()
{
+ //printf("incContentsDepth() indent=%d\n",m_indent);
m_indent++;
ASSERT(m_indent<MAX_INDENT);
}
@@ -530,16 +531,20 @@ void FTVHelp::incContentsDepth()
*/
void FTVHelp::decContentsDepth()
{
+ //printf("decContentsDepth() indent=%d\n",m_indent);
ASSERT(m_indent>0);
if (m_indent>0)
{
m_indent--;
QList<FTVNode> *nl = &m_indentNodes[m_indent];
FTVNode *parent = nl->getLast();
- QList<FTVNode> *children = &m_indentNodes[m_indent+1];
- while (!children->isEmpty())
+ if (parent)
{
- parent->children.append(children->take(0));
+ QList<FTVNode> *children = &m_indentNodes[m_indent+1];
+ while (!children->isEmpty())
+ {
+ parent->children.append(children->take(0));
+ }
}
}
}