changeset 526:bda9f951f971

add assert
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 31 Oct 2008 15:20:06 +0100
parents 8ae47d636d3c
children 70e94ff49dc4
files src/styleengine.cc
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/styleengine.cc	Thu Oct 30 20:29:50 2008 +0100
+++ b/src/styleengine.cc	Fri Oct 31 15:20:06 2008 +0100
@@ -66,6 +66,7 @@
 void StyleEngine::endElement (int tag) {
 //   fprintf(stderr, "===> END %d\n", tag);
    assert (stack->size () > 1);
+   assert (tag == stack->getRef (stack->size () - 1)->tag);
 
    Node *n =  stack->getRef (stack->size () - 1);
    if (n->style)