Commit 2283134d authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

set current to NULL is stack is empty

parent 00c989e0
......@@ -524,7 +524,7 @@ bool dtkComposerEvaluator::rawstep(bool run_concurrent)
d->stack.append(*it++);
}
// needed for step by step
d->current = d->stack.first();
d->current = d->stack.isEmpty() ? NULL : d->stack.first();
} else if (run_concurrent) {
// dtkTrace() << "add back current node to stack: "<< d->current->title();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment