]> 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 13:09:16 +0000 (16:09 +0300)
(cherry picked from commit 3356a2f1fcde55717e3e8a4a59059ee0accb6ba7)
(cherry picked from commit 86fb569627e1d89f8cfd991bd4dcb39235fad9f6)

src/AIS/AIS_InteractiveContext_1.cxx

index 0353f8b26c0628957a6334f13476158354025a52..f27d5fe05133aed9edff7ad2f03862bc824d7bf9 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)
   {