From 006dc2809a0d9d72648002261193945bc02104e7 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 16 Apr 2009 12:19:05 +0000 Subject: [PATCH] updateBorders() method has been modified for correct fit all operation --- src/GLViewer/GLViewer_Viewer2d.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GLViewer/GLViewer_Viewer2d.cxx b/src/GLViewer/GLViewer_Viewer2d.cxx index d9b2bbec3..9a6698d48 100644 --- a/src/GLViewer/GLViewer_Viewer2d.cxx +++ b/src/GLViewer/GLViewer_Viewer2d.cxx @@ -178,7 +178,8 @@ void GLViewer_Viewer2d::updateBorders() { GLViewer_Object* anObject = *it; GLViewer_Rect* aRect = anObject->getRect(); - if( !anObject->isScalable() || !anObject->getVisible() ) + if( !anObject->isScalable() || !anObject->getVisible() || + anObject->getOwner() && !anObject->getOwner()->getVisible() ) continue; if( border->isEmpty() ) -- 2.39.2