From 623b8932bfcf6dd3545edb103c8c85836f655dc6 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 7 Oct 2015 14:29:32 +0300 Subject: [PATCH] INT PAL 52907: TC7.7.0: Unpredictable behavior of Set Rotation Point dialog --- src/OCCViewer/OCCViewer_ViewWindow.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.39.2