From: eap Date: Mon, 19 Feb 2018 10:30:58 +0000 (+0300) Subject: Fix regression of doc/salome/examples/transforming_meshes_ex11.py X-Git-Tag: V8_5_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=47e876676d669fed6615392e614a3ff4441a57ef;p=modules%2Fsmesh.git Fix regression of doc/salome/examples/transforming_meshes_ex11.py --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 72ce66df6..d7afbed39 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -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] ); } }