mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024047: Exception in TPrsStd_AISPresentation during destruction of TDocStd_Document
Adding test case for this fix Modification in order to avoid exception during destruction of AIS_InteractiveContext Small modification for trihedron Small modifications to avoid regressions Cosmetic modification
This commit is contained in:
@@ -1032,10 +1032,11 @@ void TPrsStd_AISPresentation::AISErase (const Standard_Boolean remove)
|
||||
Handle(AIS_InteractiveContext) ctx, ownctx;
|
||||
|
||||
if ( !myAIS.IsNull() ) {
|
||||
ownctx = myAIS->GetContext();
|
||||
|
||||
if ( !Label().IsNull()) {
|
||||
Handle(TPrsStd_AISViewer) viewer;
|
||||
if( !TPrsStd_AISViewer::Find(Label(), viewer) ) return;
|
||||
if( !TPrsStd_AISViewer::Find(Label(), viewer) ) return;
|
||||
ownctx = myAIS->GetContext();
|
||||
ctx = viewer->GetInteractiveContext();
|
||||
if( remove ) {
|
||||
if( !ctx.IsNull() ) ctx->Remove (myAIS,Standard_False);
|
||||
|
Reference in New Issue
Block a user