summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ftvhelp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 3bcf2c6..f411a60 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -185,9 +185,9 @@ void FTVHelp::decContentsDepth()
{
m_indent--;
std::vector<FTVNode*> &nl = m_indentNodes[m_indent];
- FTVNode *parent = nl.back();
- if (parent)
+ if (!nl.empty())
{
+ FTVNode *parent = nl.back();
std::vector<FTVNode*> &children = m_indentNodes[m_indent+1];
for (const auto &child : children)
{