1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0030728: Visualization - using one implementation of highlight/unhighlight in context - compilation correction

# check of NULL global selection owner (e.g. AIS_RubberBand has no global owner)
This commit is contained in:
nds
2019-06-17 13:45:49 +03:00
parent 9e58a20735
commit 120f8788ff

View File

@@ -1945,7 +1945,9 @@ void AIS_InteractiveContext::EraseGlobal (const Handle(AIS_InteractiveObject)& t
const Standard_Integer aDispMode = theIObj->HasHilightMode() ? theIObj->HilightMode() : 0;
AIS_NListOfEntityOwner anOwners;
anOwners.Append(theIObj->GlobalSelOwner());
const Handle(SelectMgr_EntityOwner)& aGlobOwner = theIObj->GlobalSelOwner();
if (!aGlobOwner.IsNull())
anOwners.Append(aGlobOwner);
unhighlightOwners (anOwners);
myMainPM->SetVisibility (theIObj, aStatus->DisplayMode(), Standard_False);