1
0
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:
gka
2013-07-18 13:16:35 +04:00
parent efef9da8e5
commit da0e82aac3
7 changed files with 109 additions and 7 deletions

View File

@@ -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);