diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-01 19:01:45 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-01 19:01:45 +0100 |
commit | 2095fc7411321b00d0fb047a90657530f212558e (patch) | |
tree | d38157906430078663fe422723b7f3337fc249d5 /src | |
parent | 8ace53dd73ea48a106ef28590b743d16e81f7867 (diff) |
fix DocTree implementation in StyleEngine
Diffstat (limited to 'src')
-rw-r--r-- | src/styleengine.hh | 2 |
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; |