]> OCCT Git - occt-copy.git/commitdiff
0030725: Visualization - remove Display calling from SetSelected methods of context
authornds <nds@opencascade.com>
Wed, 22 May 2019 08:37:03 +0000 (11:37 +0300)
committernds <nds@opencascade.com>
Fri, 24 May 2019 06:58:59 +0000 (09:58 +0300)
(cherry picked from commit 3356a2f1fcde55717e3e8a4a59059ee0accb6ba7)

src/AIS/AIS_InteractiveContext_1.cxx

index 6327fc4c94a2210ee38e3b7f719854240d54344a..55eb128dd256a92a00f405d57ddc556114c53c6d 100644 (file)
@@ -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)
   {