]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the last comment (From Alexey Kovaltchuk 2008-06-02 09:23) of the Bug IPAL19822 V4_1_3rc1
authorapo <apo@opencascade.com>
Mon, 2 Jun 2008 08:41:18 +0000 (08:41 +0000)
committerapo <apo@opencascade.com>
Mon, 2 Jun 2008 08:41:18 +0000 (08:41 +0000)
 - 4.x: REGRESSION - it is impossible to create any presentation on the filed of the attached med file.

src/CONVERTOR/VISU_MedConvertor.cxx

index 4097baad2b08fc602716251968d0f8bc3dd84068..404bb5fd965d6ebf3c6150bfac9ee276efa8207d 100644 (file)
@@ -788,8 +788,8 @@ namespace
       aField->myName = aFieldName;
       aField->myMeshName = aMeshName;
       aField->myDataSize = aMeshOnEntity->myNbCells * aNbComp;
-      aField->myIsELNO = true; // To set it true by default
-      
+      aField->myIsELNO = ( aMEntity == MED::eNOEUD_ELEMENT );
+
       INITMSG(MYDEBUG,"myName = '"<<aField->myName<<"'"<<
              "; myId = "<<aField->myId<<
              "; myEntity = "<<aField->myEntity<<
@@ -834,14 +834,11 @@ namespace
          TInt aNbGauss = anIter->second;
          aVGeom2NbGauss[ aEGeom ] = aNbGauss;
 
-         // ELNO data should satisfy the following condition ( implcitly )
+         // ELNO data should satisfy the following condition ( implicitly )
          vtkIdType aNbNodes = MEDGeom2NbNodes( aMGeom );
          aField->myIsELNO &= ( aNbGauss == aNbNodes );
        }
       }
-
-      // ELNO data should satisfy the following condition ( explicitly )
-      aField->myIsELNO |= ( aMEntity == MED::eNOEUD_ELEMENT );
     }
   }