diff --git a/src/AIS/AIS_InteractiveContext_1.cxx b/src/AIS/AIS_InteractiveContext_1.cxx index 0353f8b26c..f27d5fe051 100644 --- a/src/AIS/AIS_InteractiveContext_1.cxx +++ b/src/AIS/AIS_InteractiveContext_1.cxx @@ -773,7 +773,7 @@ void AIS_InteractiveContext::SetSelected (const Handle(AIS_InteractiveObject)& t if (!myObjects.IsBound (theObject)) { - Display (theObject, Standard_False); + return; } Handle(SelectMgr_EntityOwner) anOwner = theObject->GlobalSelOwner(); @@ -865,7 +865,7 @@ void AIS_InteractiveContext::SetSelected (const Handle(SelectMgr_EntityOwner)& t } if (!myObjects.IsBound (anObject)) - Display (anObject, Standard_False); + return; if (myAutoHilight) {