fix a coredump situation, discovered by Melchior.

This commit is contained in:
ehofman 2005-06-08 14:07:53 +00:00
parent 75ab8e697b
commit d4e760efe1

View File

@ -927,6 +927,7 @@ SGPropertyNode::removeChild (const char * name, int index, bool keep)
if (keep) {
_removedChildren.push_back(node);
}
if (_path_cache)
_path_cache->erase(name); // EMH - TODO: Take "index" into account!
node->setAttribute(REMOVED, true);
node->clearValue();