diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-10-31 15:20:06 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-10-31 15:20:06 +0100 |
commit | 603257bf19de8c74826f85cc6812322e54a7da3f (patch) | |
tree | 717428fd8f0351045b391de35abc50ab56b53d8c | |
parent | ba5c32557984e1ba0f1d6be498bc72018394cd7b (diff) |
add assert
-rw-r--r-- | src/styleengine.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 8aa6e7b1..64f6a4db 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -66,6 +66,7 @@ void StyleEngine::setNonCssProperties (CssPropertyList *props) { 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) |