Follow-up to bdb8c3729f393a80810924de4cec02a1502e50c7

Fixing ExtrusionEntityCollection append move operator
(fixing double destruction of ExtrusionEntityCollections)
This commit is contained in:
Vojtech Bubnik 2022-03-25 14:40:51 +01:00
parent 08c6e4faec
commit 5c8ff73fb1

View File

@ -68,6 +68,9 @@ public:
entities.insert(entities.end(), entities.insert(entities.end(),
std::make_move_iterator(src.begin()), std::make_move_iterator(src.begin()),
std::make_move_iterator(src.end())); std::make_move_iterator(src.end()));
// Removing pointers to polymorphic extrusions from the donor object
// so that they will not be deleted twice.
src.clear();
} }
} }
void append(const ExtrusionPaths &paths) { void append(const ExtrusionPaths &paths) {