From: vsr Date: Thu, 28 Sep 2006 11:16:06 +0000 (+0000) Subject: Fix a bug of VISU::MedConvertor: application crashes if nb of timestamps for the... X-Git-Tag: V2_2_0_maintainance_FINAL^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d842be5b23e13f1c8c4ae6872fee00659ae7ba01;p=modules%2Fvisu.git Fix a bug of VISU::MedConvertor: application crashes if nb of timestamps for the field is 0 (badly formed MED file) --- diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index 9c5e342e..241bd193 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -395,7 +395,7 @@ VISU_Convertor* VISU_MedConvertor::Build() { aMEntity, aTGeom, &anErr); - if(anErr < 0) + if(anErr < 0 || aNbTimeStamps < 1) continue; VISU::TEntity aVEntity = MEDEntityToVTK(aMEntity);