]> 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>
Wed, 22 May 2019 10:28:13 +0000 (13:28 +0300)
(cherry picked from commit 3356a2f1fcde55717e3e8a4a59059ee0accb6ba7)

src/AIS/AIS_InteractiveContext_1.cxx

index 466deaca1ac79cfcd9ee40a20bd8da03b048fbb3..6ba03a7b8d2e98a86b3b9a4c5196354ee484865c 100644 (file)
@@ -788,7 +788,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();
@@ -882,7 +882,7 @@ void AIS_InteractiveContext::SetSelected (const Handle(SelectMgr_EntityOwner)& t
   }
 
   if (!myObjects.IsBound (anObject))
-    Display (anObject, Standard_False);
+    return;
 
   if (myAutoHilight)
   {