From: smh Date: Tue, 11 May 2004 06:44:53 +0000 (+0000) Subject: Fix on Bug PAL5834 X-Git-Tag: Ecole_Ete_a5~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8950e5726ba84c32672d07528104b04539348a59;p=modules%2Fkernel.git Fix on Bug PAL5834 - v1_4_1 and current: VTK error messages appear on execution of "Sweep" command --- diff --git a/src/OBJECT/SALOME_Actor.cxx b/src/OBJECT/SALOME_Actor.cxx index cd0813f0e..edc0a3bae 100644 --- a/src/OBJECT/SALOME_Actor.cxx +++ b/src/OBJECT/SALOME_Actor.cxx @@ -185,6 +185,8 @@ unsigned long int SALOME_Actor::GetMTime(){ unsigned long mTime = this->Superclass::GetMTime(); unsigned long time = myTransformFilter->GetMTime(); mTime = ( time > mTime ? time : mTime ); + time = myPassFilter[0]->GetInput()->GetMTime(); + mTime = ( time > mTime ? time : mTime ); return mTime; } diff --git a/src/VTKFilter/SALOME_PassThroughFilter.cxx b/src/VTKFilter/SALOME_PassThroughFilter.cxx index f1ee7c5e9..68e7959fd 100644 --- a/src/VTKFilter/SALOME_PassThroughFilter.cxx +++ b/src/VTKFilter/SALOME_PassThroughFilter.cxx @@ -43,6 +43,9 @@ void SALOME_PassThroughFilter::Execute() // This has to be here because it initialized all field datas. output->CopyStructure( input ); + if(!input->GetNumberOfPoints()){ + vtkErrorMacro(<<"No input data"); + } // Pass all. (data object's field data is passed by the // superclass after this method)