Fixed size checking bug

release/4.3a0
Richard Roberts 2012-09-06 14:33:40 +00:00
parent 574a9711cc
commit 1322b7e49d
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ namespace gtsam {
++ firstIndex;
// Check that number of variables is in bounds
if(firstIndex + nFrontals >= variableIndex.size())
if(firstIndex + nFrontals > variableIndex.size())
throw std::invalid_argument("Requested to eliminate more frontal variables than exist in the factor graph.");
// Get set of involved factors