Fixed empty list bug in COLAMDConstrainFirst

release/4.3a0
Richard Roberts 2013-08-16 04:09:48 +00:00
parent ebe1635016
commit 6d4c101d86
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ namespace gtsam {
++ group;
}
if(!forceOrder)
if(!forceOrder && !constrainFirst.empty())
++ group;
BOOST_FOREACH(int& c, cmember)
if(c == none)