From: rnv Date: Tue, 17 Feb 2009 13:42:34 +0000 (+0000) Subject: Fix for IPAL19044 (4x REGRESS: vertex is not displayed in VTK and broken trihedron... X-Git-Tag: V5_1_1a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=33dbdaec8f596a68bb21911e938a5760f8fe6d7e;p=modules%2Fgui.git Fix for IPAL19044 (4x REGRESS: vertex is not displayed in VTK and broken trihedron) in 5X version. --- diff --git a/src/SVTK/SVTK_Trihedron.cxx b/src/SVTK/SVTK_Trihedron.cxx index ed6ad07d1..f7b2b452e 100644 --- a/src/SVTK/SVTK_Trihedron.cxx +++ b/src/SVTK/SVTK_Trihedron.cxx @@ -53,7 +53,7 @@ SVTK_Trihedron if(!anActor->IsInfinitive()) aCount++; } - else if ( !OwnActor( anActor ) ) { + else if ( !OwnActor( aProp ) ) { aCount++; } } diff --git a/src/VTKViewer/VTKViewer_Utilities.cxx b/src/VTKViewer/VTKViewer_Utilities.cxx index 03d085813..c6fe7e9ea 100755 --- a/src/VTKViewer/VTKViewer_Utilities.cxx +++ b/src/VTKViewer/VTKViewer_Utilities.cxx @@ -119,7 +119,7 @@ ComputeVisiblePropBounds(vtkRenderer* theRenderer, aCollection->InitTraversal(); while (vtkActor* aProp = aCollection->GetNextActor()) { // if it's invisible, or has no geometry, we can skip the rest - if(aProp->GetVisibility() && aProp->GetMapper()){ + if(aProp->GetVisibility() && aProp->GetMapper() && vtkMath::AreBoundsInitialized(aProp->GetBounds())){ if(VTKViewer_Actor* anActor = VTKViewer_Actor::SafeDownCast(aProp)) if(anActor->IsInfinitive()) continue;