]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL19886
authorapo <apo@opencascade.com>
Mon, 2 Jun 2008 07:55:52 +0000 (07:55 +0000)
committerapo <apo@opencascade.com>
Mon, 2 Jun 2008 07:55:52 +0000 (07:55 +0000)
 - 4x REGRESS: fatal error on GUI state in Post-Pro

src/VISUGUI/VisuGUI_PopupTools.cxx

index 02af7e9881754136b73718508c1b5be48c87ed56..a9c86e5a3e7190684245264c130537531a70d851 100644 (file)
@@ -392,6 +392,8 @@ struct TViewFunctor
     } else {
       aViewWindow = GetActiveViewWindow<SVTK_ViewWindow>(theModule);
       VISU::TSelectionInfo aSelectionInfo = VISU::GetSelectedObjects(theModule);
+      if ( aSelectionInfo.empty() )
+       return QString();
       VISU::TSelectionItem aSelectionItem = aSelectionInfo.front();
       aPointMap3d = dynamic_cast<VISU::PointMap3d_i*>(aSelectionItem.myObjectInfo.myBase);
       anActorBase = VISU::FindActorBase(aViewWindow, aPointMap3d);