]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for the bug IPAL21936 bounding box does not account real size of object.
authorrnv <rnv@opencascade.com>
Tue, 30 Nov 2010 15:11:40 +0000 (15:11 +0000)
committerrnv <rnv@opencascade.com>
Tue, 30 Nov 2010 15:11:40 +0000 (15:11 +0000)
src/SVTK/SALOME_Actor.cxx

index f7b54f6bce6f2a1b714316e0b9a089de54a9f428..2048c611d86f1d7d92a3d69eb7c2e77114b8df1f 100644 (file)
@@ -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 );