]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
updateView must check equivalence of roots
authorasl <asl@opencascade.com>
Mon, 3 Apr 2006 10:21:21 +0000 (10:21 +0000)
committerasl <asl@opencascade.com>
Mon, 3 Apr 2006 10:21:21 +0000 (10:21 +0000)
src/ObjBrowser/OB_Browser.cxx

index 6eb296fe5b70b3a4651bcca2a0754f26f5db9a12..ea3bc31bb76c86f9be0a6c9d0a5457c1ffdad0dd 100755 (executable)
@@ -730,10 +730,10 @@ void OB_Browser::updateView( SUIT_DataObject* startObj )
   if ( !lv )
     return;
 
-  if ( !startObj || startObj->root() != getRootObject() )
+  if ( !startObj || startObj->root() != getRootObject()->root() )
     return;
 
-  if ( startObj == myRoot )
+  if( startObj==myRoot->root() )
   {
     DataObjectList ch;
     myRoot->children( ch );