From 915a5c92ed1a86ffcd37ed74a63dc1acc9d73b97 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 7 Jul 2011 07:51:15 +0000 Subject: [PATCH] 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 --- src/LightApp/LightApp_SelectionMgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() ); } -- 2.39.2