mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
Qt4 porting: correct construction of object browser popup.
This commit is contained in:
parent
b95b1944ea
commit
f212bd3496
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user