aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/styleengine.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/styleengine.hh b/src/styleengine.hh
index 7631eb55..b37aa0d7 100644
--- a/src/styleengine.hh
+++ b/src/styleengine.hh
@@ -32,7 +32,7 @@ class StyleEngine : public Doctree {
};
inline const DoctreeNode *parent (const DoctreeNode *n) {
- if (n->depth > 0)
+ if (n->depth > 1)
return stack->getRef (n->depth - 1);
else
return NULL;