diff --git a/src/OpenFOAM/containers/Lists/PackedList/PackedList.C b/src/OpenFOAM/containers/Lists/PackedList/PackedList.C index ecf64f861a..ad8c09751c 100644 --- a/src/OpenFOAM/containers/Lists/PackedList/PackedList.C +++ b/src/OpenFOAM/containers/Lists/PackedList/PackedList.C @@ -267,8 +267,8 @@ Foam::Ostream& Foam::PackedList::print(Ostream& os) const template void Foam::PackedList::operator=(const PackedList& lst) { - setCapacity(lst.size()); StorageList::operator=(lst); + size_ = lst.size(); } @@ -276,6 +276,7 @@ template void Foam::PackedList::operator=(const UList