From: skl Date: Wed, 26 Jul 2006 07:39:38 +0000 (+0000) Subject: Correction for bug IPAL12989. X-Git-Tag: For_OCT_611~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65f4947b8f03a94c66326b52e69177cf24f3b7a1;p=modules%2Fvisu.git Correction for bug IPAL12989. --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 6dec1496..f6e5127c 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -1827,9 +1827,9 @@ VISU_MedConvertor const MED::PMeshInfo& aMeshInfo = theMesh->myMeshInfo; MED::EMaillage aType = aMeshInfo->GetType(); - + //Main part of code - if(MED::eNON_STRUCTURE){ + if(aType==MED::eNON_STRUCTURE){ MED::PNodeInfo aNodeInfo = theMed->GetPNodeInfo(theMesh->myMeshInfo); TInt aNbElem = aNodeInfo->GetNbElem(); @@ -1840,7 +1840,8 @@ VISU_MedConvertor if(aNodeInfo->GetFamNum(iElem) == anId) aSubMeshID.push_back(iElem); } - } else { + } + else { MED::PGrilleInfo aGrilleInfo = theMed->GetPGrilleInfo(aMeshInfo); TInt aNbElem = aGrilleInfo->GetNbNodes();