From: eap Date: Thu, 7 Jul 2011 07:51:15 +0000 (+0000) Subject: fix a SIGSEGV in the following use case: X-Git-Tag: OpenCV_demo1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=915a5c92ed1a86ffcd37ed74a63dc1acc9d73b97;p=modules%2Fgui.git fix a SIGSEGV in the following use case: - create a box - create a mesh on the box w/o hypotheses - pop-up on the mesh in OB -> SIGSEGV --- diff --git a/src/LightApp/LightApp_SelectionMgr.cxx b/src/LightApp/LightApp_SelectionMgr.cxx index 6b9e46417..5f823ae63 100644 --- a/src/LightApp/LightApp_SelectionMgr.cxx +++ b/src/LightApp/LightApp_SelectionMgr.cxx @@ -460,7 +460,7 @@ QList LightApp_SelectionMgr::selectionCache( co if ( myCacheSelection.contains( *it ) ) { const SelList& lst = myCacheSelection[*it]; for ( SelList::const_iterator itr = lst.begin(); itr != lst.end(); ++itr ) { - if ( !set.contains( (*itr)->getEntry() ) ) { + if ( !(*itr).IsNull() && !set.contains( (*itr)->getEntry() ) ) { res.append( *itr ); set.insert( (*itr)->getEntry() ); }