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 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa9fbff5896f3fcaf4cf8da4aafaa224365f6586;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);