summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-01 19:01:45 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-01 19:01:45 +0100
commit2095fc7411321b00d0fb047a90657530f212558e (patch)
treed38157906430078663fe422723b7f3337fc249d5
parent8ace53dd73ea48a106ef28590b743d16e81f7867 (diff)
fix DocTree implementation in StyleEngine
-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;