From: ageay Date: Wed, 23 Nov 2011 15:39:33 +0000 (+0000) Subject: correction of a big bug 2. X-Git-Tag: V6_4_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9b68d835cbff131e184c2bfa9be4c3f732ae6a1;p=tools%2Fmedcoupling.git correction of a big bug 2. --- diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index 045c5f4dc..b1228b318 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -422,6 +422,13 @@ void MEDFileMesh::changeFamilyName(const char *oldName, const char *newName) thr int cpy=(*it).second; _families.erase(it); _families[newName]=cpy; + for(std::map >::iterator it3=_groups.begin();it3!=_groups.end();it3++) + { + std::vector& v=(*it3).second; + std::vector::iterator it4=std::find(v.begin(),v.end(),oname); + if(it4!=v.end()) + (*it4)=nname; + } } bool MEDFileMesh::areFamsEqual(const MEDFileMesh *other, std::string& what) const