Qt4 porting: correct construction of object browser popup.

This commit is contained in:
mkr 2008-03-14 15:28:42 +00:00
parent b95b1944ea
commit f212bd3496

View File

@ -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;
}