]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Qt4 porting: correct construction of object browser popup.
authormkr <mkr@opencascade.com>
Fri, 14 Mar 2008 15:28:42 +0000 (15:28 +0000)
committermkr <mkr@opencascade.com>
Fri, 14 Mar 2008 15:28:42 +0000 (15:28 +0000)
src/SMESHGUI/SMESHGUI_Selection.cxx

index 6f6151218a72b546d84e05695da1f2843fbd6ff2..9a7fe52c252451e76f2f5edfb638343f62906d03 100644 (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;
 }