aboutsummaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-31 15:20:06 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-31 15:20:06 +0100
commit603257bf19de8c74826f85cc6812322e54a7da3f (patch)
tree717428fd8f0351045b391de35abc50ab56b53d8c /src/styleengine.cc
parentba5c32557984e1ba0f1d6be498bc72018394cd7b (diff)
add assert
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc1
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)