]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
INT PAL 52907: TC7.7.0: Unpredictable behavior of Set Rotation Point dialog
authorvsr <vsr@opencascade.com>
Wed, 7 Oct 2015 11:29:32 +0000 (14:29 +0300)
committervsr <vsr@opencascade.com>
Wed, 7 Oct 2015 11:29:32 +0000 (14:29 +0300)
src/OCCViewer/OCCViewer_ViewWindow.cxx

index de19ce9816c0b47e46adfd42ea260261d1b6a426..fb65e7d33264fceaa833cc575f8fbb327bc5534f 100755 (executable)
@@ -674,9 +674,8 @@ bool OCCViewer_ViewWindow::computeGravityCenter( double& theX, double& theY, dou
 
   for( ; aStructureIt.More(); aStructureIt.Next() ) {
     const Handle(Graphic3d_Structure)& aStructure = aStructureIt.Key();
-    if ( aStructure->IsEmpty() ) {
+    if ( aStructure->IsEmpty() || !aStructure->IsVisible() || aStructure->CStructure()->IsForHighlight )
       continue;
-    }
 
 #if OCC_VERSION_LARGE > 0x06070100
     Bnd_Box aBox = aStructure->MinMaxValues();