Salome HOME
PR: double nodes and flat elements for ASTER calculations in progress
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_CopyMeshDlg.cxx
index f4b6950bfdfe24fa08afd7bc106457452da89958..f1a72bb64b649083d7b855054def58488747acd9 100644 (file)
@@ -338,7 +338,7 @@ bool SMESHGUI_CopyMeshDlg::ClickOnApply()
     // obj has been published in study. Its refcount has been incremented.
     // It is safe to decrement its refcount
     // so that it will be destroyed when the entry in study will be removed
-    newMesh->Destroy();
+    newMesh->UnRegister();
 #endif
   } catch (...) {
   }