From c936e5f8de0109e2ccf11625a5bb7766eea67881 Mon Sep 17 00:00:00 2001 From: enk Date: Tue, 31 May 2005 06:00:47 +0000 Subject: [PATCH] Fixed bugs on: - incorrect reaction of CubeAxes on Clipping Planes - incorrect computing of bounds of CubeAxes for SMESH module --- src/VTKViewer/VTKViewer_ViewFrame.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/VTKViewer/VTKViewer_ViewFrame.cxx b/src/VTKViewer/VTKViewer_ViewFrame.cxx index d3baed7d7..155d5f24e 100644 --- a/src/VTKViewer/VTKViewer_ViewFrame.cxx +++ b/src/VTKViewer/VTKViewer_ViewFrame.cxx @@ -239,9 +239,8 @@ void VTKViewer_ViewFrame::AdjustTrihedrons(const bool forced) { if ( aSActor->IsResizable() ) aSActor->SetSize( 0.5 * aNewSize ); - if( aSActor->GetVisibility()){ - float abounds[6]; - aSActor->GetBounds(abounds); + if( aSActor->GetVisibility() && !aSActor->IsInfinitive()){ + float *abounds = aSActor->GetBounds(); if(MYDEBUG) cout << "Bounds: Actor="<