]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix issue #390.
authormzn <mzn@opencascade.com>
Thu, 27 Mar 2014 12:53:01 +0000 (12:53 +0000)
committermzn <mzn@opencascade.com>
Thu, 27 Mar 2014 12:53:01 +0000 (12:53 +0000)
src/HYDROGUI/HYDROGUI_DataModel.cxx

index 0476f169f858ccd0fa007606415710c4e8c19888..654451d863bd0a2dfcf77abd94e807c45f692f24 100644 (file)
@@ -601,6 +601,9 @@ bool HYDROGUI_DataModel::paste()
         anObject->CopyTo( aClone );
         anIsChanged = true;
 
+        // remove Z layer
+        aClone->RemoveZLevel();
+        
         // generate a new unique name for the clone object:
         // case 1: Image_1 -> Image_2
         // case 2: ImageObj -> ImageObj_1