From: apo Date: Thu, 24 Nov 2005 15:50:22 +0000 (+0000) Subject: Fix for Bug GVIEW10644 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=33390e1184dee500152c4a78c2f14631544cbd63;p=modules%2Fvisu.git Fix for Bug GVIEW10644 animation causes SIGSEGV error while loading sandia file --- diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index cacc4046..052eca5d 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -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]); }