From db4dd7261dc3bbca14346d300e0197057c652f80 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 24 Nov 2011 07:36:09 +0000 Subject: [PATCH] Correction of bug. --- src/MEDLoader/MEDFileMesh.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.39.2