diff --git a/src/AIS/AIS_InteractiveContext.hxx b/src/AIS/AIS_InteractiveContext.hxx index b136388c85..7ecf896843 100644 --- a/src/AIS/AIS_InteractiveContext.hxx +++ b/src/AIS/AIS_InteractiveContext.hxx @@ -1397,9 +1397,9 @@ protected: //! @name internal methods } } - //! Bind/Unbind status to object and object children - //! \param theIObj object - //! \param theStatus status, if NULL, unbind object + //! Bind/Unbind status to object and its children + //! @param theObj [in] the object to change status + //! @param theStatus status, if NULL, unbind object Standard_EXPORT void setObjectStatus (const Handle(AIS_InteractiveObject)& theIObj, const AIS_DisplayStatus theStatus, const Standard_Integer theDispyMode, diff --git a/src/AIS/AIS_InteractiveContext_1.cxx b/src/AIS/AIS_InteractiveContext_1.cxx index 19dce11974..1901b14f21 100644 --- a/src/AIS/AIS_InteractiveContext_1.cxx +++ b/src/AIS/AIS_InteractiveContext_1.cxx @@ -732,7 +732,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(); @@ -824,7 +824,7 @@ void AIS_InteractiveContext::SetSelected (const Handle(SelectMgr_EntityOwner)& t } if (!myObjects.IsBound (anObject)) - Display (anObject, Standard_False); + return; if (myAutoHilight) {