From 703cdcdcbdb830edda70e9c89bca888eda28f86f Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 1 Mar 2011 13:38:34 +0000 Subject: [PATCH] Small corrections --- src/SalomeApp/SalomeApp_Application.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index bd87ccaa6..c74eae84e 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -1770,7 +1770,7 @@ void SalomeApp_Application::updateVisibilityState( DataObjectList& theList, for ( DataObjectList::iterator itr = theList.begin(); itr != theList.end(); ++itr ) { LightApp_DataObject* obj = dynamic_cast(*itr); - if (aStudy->isComponent(obj->entry()) || !obj) + if (!obj || aStudy->isComponent(obj->entry())) continue; LightApp_Module* anObjModule = dynamic_cast(obj->module()); -- 2.39.2