1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0024471: Erasing of the shape in HLR sample leads to sample crash.

This commit is contained in:
aba 2013-12-16 18:10:58 +04:00 committed by apn
parent 243fc66226
commit 38fd051164

View File

@ -216,7 +216,8 @@ void CSelectionDialog::OnGetSelectedShapes()
OneOrMoreFound = Standard_True;
TopoDS_Shape aShape = anAISShape->Shape();
myDisplayableShape->Add (aShape);
myInteractiveContext->Display (anAISShape);
Handle(AIS_Shape) aSelectedShape = new AIS_Shape (aShape);
myInteractiveContext->Display (aSelectedShape);
}
}