From bf1f5037d0adafa8dc1f2e8a7a36980728a8e69d Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sat, 1 Mar 2014 20:41:05 -0500 Subject: [PATCH] Fixed warning --- gtsam_unstable/partition/GenericGraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtsam_unstable/partition/GenericGraph.cpp b/gtsam_unstable/partition/GenericGraph.cpp index 611186c12..1ee462728 100644 --- a/gtsam_unstable/partition/GenericGraph.cpp +++ b/gtsam_unstable/partition/GenericGraph.cpp @@ -266,11 +266,12 @@ namespace gtsam { namespace partition { else isLandmark[factor_->key1.index] = true; } - if (workspace.dictionary[factor_->key2.index] != -1) + if (workspace.dictionary[factor_->key2.index] != -1) { if (factor_->key2.type == NODE_POSE_3D) isCamera[factor_->key2.index] = true; else isLandmark[factor_->key2.index] = true; + } } vector nrConstraints(workspace.dictionary.size(), 0);