Remove overeager selection index group check
[alexxy/gromacs.git] / src / gromacs / selection / parsetree.cpp
index 7f4566923dc45d57f5ac53fdb56a28945cc19063..a40798df3505c731158290a505e76d9500c5ee64 100644 (file)
@@ -410,8 +410,8 @@ _gmx_selelem_update_flags(const gmx::SelectionTreeElementPointer &sel,
     {
         /* Update the child */
         _gmx_selelem_update_flags(child, scanner);
-        /* Propagate the dynamic flag */
-        sel->flags |= (child->flags & SEL_DYNAMIC);
+        /* Propagate the dynamic and unsorted flags */
+        sel->flags |= (child->flags & (SEL_DYNAMIC | SEL_UNSORTED));
         /* Propagate the type flag if necessary and check for problems */
         if (bUseChildType)
         {