1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0030784: Visualization - check if selectable of owner in internal container in AIS_InteractiveContext before using

# todo - add similar check for other places where needed

(cherry picked from commit 9e58a20735)
This commit is contained in:
nds
2019-05-14 14:31:43 +03:00
parent f25bebd7b3
commit 3ca159f3ca

View File

@@ -954,6 +954,8 @@ void AIS_InteractiveContext::AddOrRemoveSelected (const Handle(SelectMgr_EntityO
if (myAutoHilight)
{
const Handle(AIS_InteractiveObject) anObj = Handle(AIS_InteractiveObject)::DownCast (theOwner->Selectable());
if (!myObjects.IsBound(anObj)) // e.g. AIS_ViewCubeFlat is not displayed
return;
Handle(AIS_GlobalStatus)& aStatus = myObjects.ChangeFind (anObj);
if (theOwner->IsSelected())
{