From: kgv Date: Sun, 15 Dec 2013 12:25:16 +0000 (+0400) Subject: 0024466: Visualization - PrsMgr_Presentation3d::Erase() now leads to incomplete destr... X-Git-Tag: V6_7_0~8 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=5396d9ca176c84515aebf523dd07be6de5846515;p=occt.git 0024466: Visualization - PrsMgr_Presentation3d::Erase() now leads to incomplete destruction of Graphic3d_Structure --- diff --git a/src/PrsMgr/PrsMgr_Presentation3d.cxx b/src/PrsMgr/PrsMgr_Presentation3d.cxx index 6eb71b0fd1..b3f5f92a1f 100755 --- a/src/PrsMgr/PrsMgr_Presentation3d.cxx +++ b/src/PrsMgr/PrsMgr_Presentation3d.cxx @@ -72,6 +72,7 @@ void PrsMgr_Presentation3d::Erase () { // Erase structure from structure manager myStructure->Erase(); + myStructure->Clear(); // Disconnect other structures myStructure->DisconnectAll (Graphic3d_TOC_DESCENDANT); // Clear groups and remove graphic structure