Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / selection / selectioncollection.cpp
index 58c367b8a8af1bff70c64fc12d66467b336bf4df..577707488d31182b04bc65cbb2c7fb9a2651825b 100644 (file)
@@ -447,7 +447,8 @@ void SelectionCollection::Impl::resolveExternalGroups(
     while (child)
     {
         resolveExternalGroups(child, errors);
-        child = child->next;
+        root->flags |= (child->flags & SEL_UNSORTED);
+        child        = child->next;
     }
 }