From: asl Date: Mon, 3 Apr 2006 10:21:21 +0000 (+0000) Subject: updateView must check equivalence of roots X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0b5b0580bbb0f8057c1dc2eeb713e138ecbe176e;p=modules%2Fgui.git updateView must check equivalence of roots --- diff --git a/src/ObjBrowser/OB_Browser.cxx b/src/ObjBrowser/OB_Browser.cxx index 6eb296fe5..ea3bc31bb 100755 --- a/src/ObjBrowser/OB_Browser.cxx +++ b/src/ObjBrowser/OB_Browser.cxx @@ -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 );