aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/styleengine.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 09a90866..75d1d425 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -55,7 +55,7 @@ void StyleEngine::startElement (int element) {
if (stack->getRef (stack->size () - 1)->style == NULL)
style0 ();
- stack->increase ();
+ stack->setSize (stack->size () + 1);
Node *n = stack->getRef (stack->size () - 1);
n->style = NULL;
n->depth = stack->size () - 1;