From: apo Date: Mon, 2 Jun 2008 07:55:52 +0000 (+0000) Subject: Fix for Bug IPAL19886 X-Git-Tag: V4_1_3rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92f932ae740baa81889193ea24fc7f73b9c3cb92;p=modules%2Fvisu.git Fix for Bug IPAL19886 - 4x REGRESS: fatal error on GUI state in Post-Pro --- diff --git a/src/VISUGUI/VisuGUI_PopupTools.cxx b/src/VISUGUI/VisuGUI_PopupTools.cxx index 02af7e98..a9c86e5a 100644 --- a/src/VISUGUI/VisuGUI_PopupTools.cxx +++ b/src/VISUGUI/VisuGUI_PopupTools.cxx @@ -392,6 +392,8 @@ struct TViewFunctor } else { aViewWindow = GetActiveViewWindow(theModule); VISU::TSelectionInfo aSelectionInfo = VISU::GetSelectedObjects(theModule); + if ( aSelectionInfo.empty() ) + return QString(); VISU::TSelectionItem aSelectionItem = aSelectionInfo.front(); aPointMap3d = dynamic_cast(aSelectionItem.myObjectInfo.myBase); anActorBase = VISU::FindActorBase(aViewWindow, aPointMap3d);