]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug GVIEW10644
authorapo <apo@opencascade.com>
Thu, 24 Nov 2005 15:50:22 +0000 (15:50 +0000)
committerapo <apo@opencascade.com>
Thu, 24 Nov 2005 15:50:22 +0000 (15:50 +0000)
  animation causes SIGSEGV error while loading sandia file

src/VISU_I/VISU_TimeAnimation.cxx

index cacc4046195e0b58baa47b29480a75ec89c76a1b..052eca5d6db8d0e8a8f76036b692e16bed158e59 100644 (file)
@@ -77,6 +77,11 @@ VISU_TimeAnimation::VISU_TimeAnimation (_PTR(Study) theStudy,
 //************************************************************************
 VISU_TimeAnimation::~VISU_TimeAnimation()
 {
+  if (!myView) {
+    MESSAGE("Viewer is not defined for animation");
+    return;
+  }
+
   for (int i = 0; i < getNbFields(); i++) {
     clearData(myFieldsLst[i]);
   }