From d842be5b23e13f1c8c4ae6872fee00659ae7ba01 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 28 Sep 2006 11:16:06 +0000 Subject: [PATCH] Fix a bug of VISU::MedConvertor: application crashes if nb of timestamps for the field is 0 (badly formed MED file) --- src/CONVERTOR/VISU_MedConvertor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2