Salome HOME
Regression of SMESH_SRC/doc/salome/examples/measurements_ex01.py
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_CopyMeshDlg.cxx
index 88766b61928ec17907e1afa6e5536f7ef16a5402..0e1f921cceaa87d0bf89feba2907a8aea78f7e8c 100644 (file)
@@ -308,10 +308,11 @@ bool SMESHGUI_CopyMeshDlg::ClickOnApply()
   try
   {
     SUIT_OverrideCursor aWaitCursor;
-    SMESH::SMESH_IDSource_var aPartToCopy;
+    SMESH::SMESH_IDSource_wrap aPartToCopy;
     if ( myIdSourceCheck->isChecked())
     {
       aPartToCopy = mySelectedObject;
+      aPartToCopy->Register();
     }
     else
     {