]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 72ce66df63446b73c1e25b9bd2a4e4ec1131a007..d7afbed39f5ec69c7c73eefbbf905161daf70672 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();
-        for ( size_t i = 0; i <= aSeq.size(); i++ )
+        for ( size_t i = 0; i < aSeq.size(); i++ )
           groupDS->SMDSGroup().Add( aSeq[i] );
       }
     }