From 397809336fa2808d70740861f36f5ac41f04cc53 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 1 Feb 2010 10:33:10 +0000 Subject: [PATCH] ruv: new condition to not pass bounds. The bounds are not initialized if they are equal to {1, -1, 1, -1, 1, -1}. --- src/VTKViewer/VTKViewer_Utilities.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/VTKViewer/VTKViewer_Utilities.cxx b/src/VTKViewer/VTKViewer_Utilities.cxx index 90838fd38..64507124f 100755 --- a/src/VTKViewer/VTKViewer_Utilities.cxx +++ b/src/VTKViewer/VTKViewer_Utilities.cxx @@ -160,7 +160,8 @@ ComputeVisiblePropBounds(vtkRenderer* theRenderer, if ( aBounds != NULL && aBounds[0] > -MAX_DISTANCE && aBounds[1] < MAX_DISTANCE && aBounds[2] > -MAX_DISTANCE && aBounds[3] < MAX_DISTANCE && - aBounds[4] > -MAX_DISTANCE && aBounds[5] < MAX_DISTANCE ) + aBounds[4] > -MAX_DISTANCE && aBounds[5] < MAX_DISTANCE && + vtkMath::AreBoundsInitialized( aBounds ) ) { aCount++; -- 2.39.2