From: rnv Date: Tue, 30 Nov 2010 15:11:40 +0000 (+0000) Subject: Fix for the bug IPAL21936 bounding box does not account real size of object. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f2b7b455b7014af4839a456e0437c5abf69c4e77;p=modules%2Fgui.git Fix for the bug IPAL21936 bounding box does not account real size of object. --- diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index f7b54f6bc..2048c611d 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -459,7 +459,8 @@ SALOME_Actor ::highlight(bool theIsHighlight) { vtkFloatingPointType aBounds[6]; - GetInput()->GetBounds(aBounds); + vtkDataSet * aDataSet = myPassFilter.back()->GetOutput(); + aDataSet->GetBounds(aBounds); myOutline->SetBounds(aBounds); myOutlineActor->SetVisibility( GetVisibility() && theIsHighlight );