]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix a bug of VISU::MedConvertor: application crashes if nb of timestamps for the... V2_2_0_maintainance_FINAL
authorvsr <vsr@opencascade.com>
Thu, 28 Sep 2006 11:16:06 +0000 (11:16 +0000)
committervsr <vsr@opencascade.com>
Thu, 28 Sep 2006 11:16:06 +0000 (11:16 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx

index 9c5e342edbb222f1264a1762d0ef0906b734ffb9..241bd193d5043702a86361bf7bcf6e57406b6859 100644 (file)
@@ -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);