X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Mesh.cxx;h=e7acf1db4d60ec3e0b970637eadeef3e5e2b59bc;hb=a4be05bc3b1de5753d74501144c3ff1416606a12;hp=226800af21610bc9887940fddf84c0fd719e3d5e;hpb=5e4a5b388c7bd9e9036d3dd513c831aa55110d21;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 226800af2..e7acf1db4 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -2431,8 +2431,9 @@ bool SMESH_Mesh::SortByMeshOrder(std::vector& theListToSort) con { TPosInList smPos = find( smBeg, smEnd, smVec[i] ); if ( smPos != smEnd ) { - onlyOrderedList.push_back( smVec[i] ); sortedPos[ distance( smBeg, smPos )] = smPos; + if ( sortedPos.size() > onlyOrderedList.size() ) + onlyOrderedList.push_back( smVec[i] ); } } }