From 8950e5726ba84c32672d07528104b04539348a59 Mon Sep 17 00:00:00 2001 From: smh Date: Tue, 11 May 2004 06:44:53 +0000 Subject: [PATCH] Fix on Bug PAL5834 - v1_4_1 and current: VTK error messages appear on execution of "Sweep" command --- src/OBJECT/SALOME_Actor.cxx | 2 ++ src/VTKFilter/SALOME_PassThroughFilter.cxx | 3 +++ 2 files changed, 5 insertions(+) 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) -- 2.39.2