]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Correction for bug IPAL12989.
authorskl <skl@opencascade.com>
Wed, 26 Jul 2006 07:39:38 +0000 (07:39 +0000)
committerskl <skl@opencascade.com>
Wed, 26 Jul 2006 07:39:38 +0000 (07:39 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx

index 6dec14967f100c47390bb7bf73582e0dd9535d2b..f6e5127c64e11408d282b77a4a53f5869d324091 100644 (file)
@@ -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();