Salome HOME
Fix regression of doc/salome/examples/transforming_meshes_ex11.py
authoreap <eap@opencascade.com>
Mon, 19 Feb 2018 10:30:58 +0000 (13:30 +0300)
committereap <eap@opencascade.com>
Mon, 19 Feb 2018 10:30:58 +0000 (13:30 +0300)
src/SMESH_I/SMESH_MeshEditor_i.cxx

index 72ce66d..d7afbed 100644 (file)
@@ -5658,7 +5658,7 @@ SMESH_MeshEditor_i::DoubleElements(SMESH::SMESH_IDSource_ptr theElements,
       {
         SMESHDS_Group* groupDS = static_cast< SMESHDS_Group* >( group_i->GetGroupDS() );
         const SMESH_SequenceOfElemPtr& aSeq = getEditor().GetLastCreatedElems();
       {
         SMESHDS_Group* groupDS = static_cast< SMESHDS_Group* >( group_i->GetGroupDS() );
         const SMESH_SequenceOfElemPtr& aSeq = getEditor().GetLastCreatedElems();
-        for ( size_t i = 0; i <= aSeq.size(); i++ )
+        for ( size_t i = 0; i < aSeq.size(); i++ )
           groupDS->SMDSGroup().Add( aSeq[i] );
       }
     }
           groupDS->SMDSGroup().Add( aSeq[i] );
       }
     }