From: mkr Date: Fri, 14 Mar 2008 15:28:42 +0000 (+0000) Subject: Qt4 porting: correct construction of object browser popup. X-Git-Tag: VSR_280308~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f212bd3496252b19e13b1d30fb6d995e03bfb9a4;p=modules%2Fsmesh.git Qt4 porting: correct construction of object browser popup. --- diff --git a/src/SMESHGUI/SMESHGUI_Selection.cxx b/src/SMESHGUI/SMESHGUI_Selection.cxx index 6f6151218..9a7fe52c2 100644 --- a/src/SMESHGUI/SMESHGUI_Selection.cxx +++ b/src/SMESHGUI/SMESHGUI_Selection.cxx @@ -119,7 +119,7 @@ QVariant SMESHGUI_Selection::parameter( const int ind, const QString& p ) const SMESH_Actor* SMESHGUI_Selection::getActor( int ind ) const { if( ind >= 0 && ind < count() ) - return myActors.at( ind ); + return myActors.isEmpty() ? 0 : myActors.at( ind ); else return 0; }