From b9b68d835cbff131e184c2bfa9be4c3f732ae6a1 Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 23 Nov 2011 15:39:33 +0000 Subject: [PATCH] correction of a big bug 2. --- src/MEDLoader/MEDFileMesh.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.2