Commit d4177b6c authored by Mikaël Salson's avatar Mikaël Salson

germline.cpp: Finish all the germlines in MultiGermline

The germline may have an index but also sub-germlines (eg. for XXX
germline). All of them must be finished.
parent 8700a50d
......@@ -327,10 +327,9 @@ void MultiGermline::build_with_one_index(string seed, bool set_index)
void MultiGermline::finish() {
if (index) {
index->finish_building();
} else {
for (auto germline: germlines) {
germline->finish();
}
}
for (auto germline: germlines) {
germline->finish();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment