mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Fix samples crash.
This commit is contained in:
parent
d222f955df
commit
1384cb64c9
@ -705,8 +705,7 @@ void AIS_InteractiveContext::EraseSelected (const Standard_Boolean theToUpdateVi
|
|||||||
aSelIter->Init();
|
aSelIter->Init();
|
||||||
while (aSelIter->More())
|
while (aSelIter->More())
|
||||||
{
|
{
|
||||||
Handle(SelectMgr_EntityOwner) anOwner = Handle(SelectMgr_EntityOwner)::DownCast (aSelIter->Value());
|
Handle(AIS_InteractiveObject) anObj = Handle(AIS_InteractiveObject)::DownCast (aSelIter->Value());
|
||||||
Handle(AIS_InteractiveObject) anObj = Handle(AIS_InteractiveObject)::DownCast (anOwner->Selectable());
|
|
||||||
|
|
||||||
Erase (anObj, Standard_False);
|
Erase (anObj, Standard_False);
|
||||||
isFound = Standard_True;
|
isFound = Standard_True;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user