summaryrefslogtreecommitdiffstats
path: root/src/ftvhelp.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-06-07 11:47:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-06-07 11:47:47 (GMT)
commit0c394c5817041713aee58748fcd5d338a467cbee (patch)
treef17d17b67fdefdfdf992328f3f51dd90812c156e /src/ftvhelp.cpp
parent70b82eced91d2739181f2b700ec04cb14d776d7b (diff)
downloadDoxygen-0c394c5817041713aee58748fcd5d338a467cbee.zip
Doxygen-0c394c5817041713aee58748fcd5d338a467cbee.tar.gz
Doxygen-0c394c5817041713aee58748fcd5d338a467cbee.tar.bz2
Release-1.3.1-20030607
Diffstat (limited to 'src/ftvhelp.cpp')
-rw-r--r--src/ftvhelp.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 2385e3f..f196253 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -437,13 +437,17 @@ int FTVHelp::decContentsDepth()
{
//int i; for (i=0;i<m_dc;i++) m_cts << " ";
- m_indent--;
- QList<FTVNode> *nl = &m_indentNodes[m_indent];
- FTVNode *parent = nl->getLast();
- QList<FTVNode> *children = &m_indentNodes[m_indent+1];
- while (!children->isEmpty())
+ ASSERT(m_indent>0);
+ if (m_indent>0)
{
- parent->children.append(children->take(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())
+ {
+ parent->children.append(children->take(0));
+ }
}
return m_indent;
}