From f212bd3496252b19e13b1d30fb6d995e03bfb9a4 Mon Sep 17 00:00:00 2001 From: mkr Date: Fri, 14 Mar 2008 15:28:42 +0000 Subject: [PATCH] Qt4 porting: correct construction of object browser popup. --- src/SMESHGUI/SMESHGUI_Selection.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2