summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-03-23 19:16:09 +0000
committerskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-03-23 19:16:09 +0000
commitb33bcf4bb496870b73ee6c4783777bf794e28fb7 (patch)
tree5ee79e5ea66e578a40c7a2303bc5f21ad9fb0a38
parent5b97c28ac4414198458de285768460500531e7ec (diff)
Prevented a possible bug in witness_complex
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/witness@501 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: fa192bb3623622dde84686e8eaa36d2cc51db2c5
-rw-r--r--src/Witness_complex/include/gudhi/Witness_complex1.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Witness_complex/include/gudhi/Witness_complex1.h b/src/Witness_complex/include/gudhi/Witness_complex1.h
index 911dcbe7..acb83647 100644
--- a/src/Witness_complex/include/gudhi/Witness_complex1.h
+++ b/src/Witness_complex/include/gudhi/Witness_complex1.h
@@ -265,10 +265,10 @@ void witness_complex(KNearestNeighbours & knn)
simplex_vector.push_back(knn[*it][i]);
}
returnValue = insert_simplex(simplex_vector,0.0);
+ it++
}
else
- active_w.erase(it); //First increase the iterator and then erase the previous element
- it++;
+ active_w.erase(it++); //First increase the iterator and then erase the previous element
}
print_sc(root());
k++;