From: vsr Date: Wed, 7 Oct 2015 11:29:32 +0000 (+0300) Subject: INT PAL 52907: TC7.7.0: Unpredictable behavior of Set Rotation Point dialog X-Git-Tag: NewGEOM_1.4.0_a~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=623b8932bfcf6dd3545edb103c8c85836f655dc6;p=modules%2Fgui.git INT PAL 52907: TC7.7.0: Unpredictable behavior of Set Rotation Point dialog --- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index de19ce981..fb65e7d33 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -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();