From a212e0ac949f9d206c5d883191e879489a783c53 Mon Sep 17 00:00:00 2001 From: mkr Date: Fri, 20 Jan 2006 07:16:46 +0000 Subject: [PATCH] Modifications to avoid endless recursion when GLViewer_Object::setGroup(...) method is called. --- src/GLViewer/GLViewer_Object.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GLViewer/GLViewer_Object.cxx b/src/GLViewer/GLViewer_Object.cxx index d2aaf4e97..f5972674b 100644 --- a/src/GLViewer/GLViewer_Object.cxx +++ b/src/GLViewer/GLViewer_Object.cxx @@ -283,6 +283,9 @@ bool GLViewer_Object::initializeFromByteCopy( QByteArray theArray ) void GLViewer_Object::setGroup( GLViewer_Group* theGroup ) { + if ( myGroup == theGroup ) + return; + if( myGroup ) myGroup->removeObject( this ); -- 2.39.2