]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
PAL13139 (Corrupted reading of groups at import of MED files in Post-Pro)
authoreap <eap@opencascade.com>
Mon, 29 Jan 2007 09:23:29 +0000 (09:23 +0000)
committereap <eap@opencascade.com>
Mon, 29 Jan 2007 09:23:29 +0000 (09:23 +0000)
       Prevent group creation if family not found

src/CONVERTOR/VISU_MedConvertor.cxx

index 7985a343da7166ba17df509ec344c0f8cbc4bfbc..f0b3b05b4e2c0975bd7ac0f36d1196a7254f21f9 100644 (file)
@@ -1022,8 +1022,8 @@ static int MY_GROUP_DEBUG = 0;
          TFamilyMap::const_iterator aFamilyMapIter = aFamilyMap.begin();
          for(; aFamilyMapIter != aFamilyMap.end(); aFamilyMapIter++){
            const std::string& aName = aFamilyMapIter->first;
-           aFamily = aFamilyMapIter->second;
            if(aName == aFamilyName){
+              aFamily = aFamilyMapIter->second;
              aVEntity = aFamily->myEntity;
              goto exit_lable;
            }