From e767996b4502de149c5e180b4deb4b2288820743 Mon Sep 17 00:00:00 2001 From: Michael Kaess Date: Wed, 20 Jan 2010 03:54:20 +0000 Subject: [PATCH] same bug fix as in ISAM2 --- cpp/ISAM-inl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/ISAM-inl.h b/cpp/ISAM-inl.h index f4ccd853f..53bce6cfe 100644 --- a/cpp/ISAM-inl.h +++ b/cpp/ISAM-inl.h @@ -52,13 +52,13 @@ namespace gtsam { // insert conditionals back in, straight into the topless bayesTree typename BayesNet::const_reverse_iterator rit; for ( rit=bayesNet.rbegin(); rit != bayesNet.rend(); ++rit ) - this->insert(*rit); + this->insert(*rit, &ordering); int count = 0; // add orphans to the bottom of the new tree BOOST_FOREACH(sharedClique orphan, orphans) { - Symbol key = orphan->separator_.front(); + Symbol key = findParentClique(orphan->separator_, ordering); sharedClique parent = (*this)[key]; parent->children_ += orphan;