From: ageay Date: Thu, 24 Nov 2011 07:36:09 +0000 (+0000) Subject: Correction of bug. X-Git-Tag: V6_4_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db4dd7261dc3bbca14346d300e0197057c652f80;p=tools%2Fmedcoupling.git Correction of bug. --- diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index b1228b318..dbef046d0 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -362,6 +362,13 @@ void MEDFileMesh::removeFamily(const char *name) throw(INTERP_KERNEL::Exception) throw INTERP_KERNEL::Exception(oss.str().c_str()); } _families.erase(it); + 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()) + v.erase(it4); + } } void MEDFileMesh::changeGroupName(const char *oldName, const char *newName) throw(INTERP_KERNEL::Exception)