From: apo Date: Fri, 18 May 2007 13:52:55 +0000 (+0000) Subject: Crash on import MED_FIELDINT : CORBA::Long should correspond to the VTK_LONG enum X-Git-Tag: mergeto_BR_Dev_For_4_0_21May07~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d099ae4ce6a55c744850438ad012b94e4a8b5b1;p=modules%2Fvisu.git Crash on import MED_FIELDINT : CORBA::Long should correspond to the VTK_LONG enum --- diff --git a/src/VISU_I/VISU_CorbaMedConvertor.cxx b/src/VISU_I/VISU_CorbaMedConvertor.cxx index 77f45e2e..11427b1a 100644 --- a/src/VISU_I/VISU_CorbaMedConvertor.cxx +++ b/src/VISU_I/VISU_CorbaMedConvertor.cxx @@ -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 = "<