]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Modifications to avoid endless recursion when GLViewer_Object::setGroup(...)
authormkr <mkr@opencascade.com>
Fri, 20 Jan 2006 07:16:46 +0000 (07:16 +0000)
committermkr <mkr@opencascade.com>
Fri, 20 Jan 2006 07:16:46 +0000 (07:16 +0000)
method is called.

src/GLViewer/GLViewer_Object.cxx

index d2aaf4e973831c141f8073484c74919b336adcba..f5972674b8977334ea8d9e15c6b69c63432425bb 100644 (file)
@@ -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 );