Skip to content
Snippets Groups Projects
Commit 88745d47 authored by BIOPZ-Johner Niklaus's avatar BIOPZ-Johner Niklaus
Browse files

Fix to pass unit cell information when merging several CoorGroup

parent 4728655d
Branches
Tags
No related merge requests found
......@@ -146,7 +146,8 @@ void CoordGroupHandle::AddFrames(const CoordGroupHandle& cg)
throw IntegrityError("Atom number don't match");
}
for (size_t i=0; i<cg.GetFrameCount(); ++i) {
source_->AddFrame(*cg.GetFrame(i));
CoordFramePtr p = cg.GetFrame(i);
source_->AddFrame(*p,p->GetCellSize(),p->GetCellAngles());
}
} else {
throw IntegrityError("Can't add frame to immutable CoordGroup");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment