diff src/styleengine.hh @ 631:4c9f7f03caf0

fix DocTree implementation in StyleEngine
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 01 Dec 2008 19:01:45 +0100
parents d0694361ecd0
children eb0279297fde
line wrap: on
line diff
--- a/src/styleengine.hh	Mon Dec 01 18:20:12 2008 +0100
+++ b/src/styleengine.hh	Mon Dec 01 19:01:45 2008 +0100
@@ -32,7 +32,7 @@
       };
 
       inline const DoctreeNode *parent (const DoctreeNode *n) {
-         if (n->depth > 0)
+         if (n->depth > 1)
             return stack->getRef (n->depth - 1);
          else
             return NULL;