bugfix: Clear both caches before rebuilding

stl_dim
Marius Kintel 2011-09-11 12:26:23 +02:00
parent cf2bd1fe4f
commit 1b0ca0d647
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ const std::string &Tree::getString(const AbstractNode &node) const
{
assert(this->root_node);
if (!this->nodecache.contains(node)) {
this->nodecache.clear();
this->nodeidcache.clear();
NodeDumper dumper(this->nodecache, false);
Traverser trav(dumper, *this->root_node, Traverser::PRE_AND_POSTFIX);
trav.execute();