From: apo Date: Wed, 21 Nov 2007 16:31:33 +0000 (+0000) Subject: Fix for Bug IPAL17703 X-Git-Tag: V3_2_9rc2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8609999112142c3589a7e1dfce091929543260db;p=modules%2Fvisu.git Fix for Bug IPAL17703 TC71: REGR: wrong import of med file --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 9af8357c..ddccb73a 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -776,7 +776,12 @@ static int MY_GROUP_DEBUG = 0; INITMSG(MYDEBUG,"BuildFieldMap: aNbFields = "<GetPFieldInfo(aMeshInfo,iField); + + MED::TErr anError = 0; + MED::PFieldInfo aFieldInfo = theMEDWrapper->GetPFieldInfo(aMeshInfo, iField, &anError); + if ( anError < 0 ) + continue; + TInt aNbComp = aFieldInfo->GetNbComp(); std::string aFieldName = aFieldInfo->GetName(); @@ -1470,7 +1475,12 @@ VISU_MedConvertor for(TInt iField = 1; iField <= aNbFields; iField++){ TTimerLog aTimerLog(MYDEBUG,"BuildMinMax - GetPFieldInfo()"); - MED::PFieldInfo aFieldInfo = myMed->GetPFieldInfo(aMeshInfo,iField); + + MED::TErr anError = 0; + MED::PFieldInfo aFieldInfo = myMed->GetPFieldInfo(aMeshInfo, iField, &anError); + if ( anError < 0 ) + continue; + std::string aFieldName = aFieldInfo->GetName(); INITMSG(MYDEBUG,"- aFieldName = '"<