From 92f932ae740baa81889193ea24fc7f73b9c3cb92 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 2 Jun 2008 07:55:52 +0000 Subject: [PATCH] Fix for Bug IPAL19886 - 4x REGRESS: fatal error on GUI state in Post-Pro --- src/VISUGUI/VisuGUI_PopupTools.cxx | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.2