]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Crash on import MED_FIELDINT : CORBA::Long should correspond to the VTK_LONG enum
authorapo <apo@opencascade.com>
Fri, 18 May 2007 13:52:55 +0000 (13:52 +0000)
committerapo <apo@opencascade.com>
Fri, 18 May 2007 13:52:55 +0000 (13:52 +0000)
src/VISU_I/VISU_CorbaMedConvertor.cxx

index 77f45e2ecfe4ac7e8c5d9fe8b78915a170dba061..11427b1a9b0b1198d74ce49dbf0d7b526512a9dd 100644 (file)
@@ -674,7 +674,7 @@ VISU_MEDFieldConvertor
   vtkIdType aDataType = VTK_DOUBLE;
   SALOME_MED::FIELDDOUBLE_ptr aFieldDouble = SALOME_MED::FIELDDOUBLE::_narrow(myField);
   if(aFieldDouble->_is_nil())
-    aDataType = VTK_INT;
+    aDataType = VTK_LONG;
   aField->Init(myField->getNumberOfComponents(), aDataType);
 
   if(MYDEBUG) MESSAGE("VISU_MEDFieldConvertor::Build - aMeshName = "<<aMeshName<<"; myDim = "<<aMesh->myDim);
@@ -1070,7 +1070,7 @@ VISU_MEDConvertor
          vtkIdType aDataType = VTK_DOUBLE;
          SALOME_MED::FIELDDOUBLE_ptr aFieldDouble = SALOME_MED::FIELDDOUBLE::_narrow(aMEDField);
          if(aFieldDouble->_is_nil())
-           aDataType = VTK_INT;
+           aDataType = VTK_LONG;
          aField->Init(aMEDField->getNumberOfComponents(), aDataType);
 
          if(MYDEBUG) 
@@ -1176,7 +1176,7 @@ VISU_MEDConvertor
       vtkIdType aDataType = VTK_DOUBLE;
       SALOME_MED::FIELDDOUBLE_ptr aFieldDouble = SALOME_MED::FIELDDOUBLE::_narrow(aMEDField);
       if(aFieldDouble->_is_nil())
-       aDataType = VTK_INT;
+       aDataType = VTK_LONG;
       aField->Init(aMEDField->getNumberOfComponents(), aDataType);
 
       aFieldMap[aFieldName.in()] = aField;