From: kgv Date: Fri, 17 Oct 2014 15:14:32 +0000 (+0400) Subject: 0025294: Visualization, PrsMgr_Presentation - detach connected presentations on destr... X-Git-Tag: V6_8_0~73 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a69a08ee9ef9369dedb885c63e53d52715477dd4;p=occt-copy.git 0025294: Visualization, PrsMgr_Presentation - detach connected presentations on destruction --- diff --git a/src/PrsMgr/PrsMgr_Presentation.cxx b/src/PrsMgr/PrsMgr_Presentation.cxx index 6343c1a151..facc71efbb 100644 --- a/src/PrsMgr/PrsMgr_Presentation.cxx +++ b/src/PrsMgr/PrsMgr_Presentation.cxx @@ -407,13 +407,7 @@ Handle(Prs3d_Projector) PrsMgr_Presentation::Projector (const Handle(Graphic3d_D //======================================================================= void PrsMgr_Presentation::Destroy() { - if (!myStructure.IsNull()) - { - // Remove structure from the list of displayed structures. - myStructure->Erase(); - myStructure->Clear(); - myStructure.Nullify(); - } + Erase(); } //=======================================================================