diff --git a/modules/mol/base/src/coord_group.cc b/modules/mol/base/src/coord_group.cc index 856ad696791087760328d3be5e3ef06af3ca48ab..3ab9ec3dbf7077bf88c56a62aa582984833e0a70 100644 --- a/modules/mol/base/src/coord_group.cc +++ b/modules/mol/base/src/coord_group.cc @@ -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");