Salome HOME
Fixed bugs on:
authorenk <enk@opencascade.com>
Tue, 31 May 2005 06:00:47 +0000 (06:00 +0000)
committerenk <enk@opencascade.com>
Tue, 31 May 2005 06:00:47 +0000 (06:00 +0000)
- incorrect reaction of CubeAxes on Clipping Planes
- incorrect computing of bounds of CubeAxes for SMESH module

src/VTKViewer/VTKViewer_ViewFrame.cxx

index d3baed7d7b175568ffb4cda21bd35f7e0f54e4e6..155d5f24eab215e7dbc8f8d75d2b2027597c60b2 100644 (file)
@@ -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="<<aSActor<<"\n"
                     << "\txMin=" << abounds[ 0 ] << " xMax=" << abounds[ 1 ] << "\n"