From: mzn Date: Thu, 27 Mar 2014 12:53:01 +0000 (+0000) Subject: Fix issue #390. X-Git-Tag: BR_hydro_v1_0_1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba3a86723c90d387663899653b60aae5f6864fc2;p=modules%2Fhydro.git Fix issue #390. --- diff --git a/src/HYDROGUI/HYDROGUI_DataModel.cxx b/src/HYDROGUI/HYDROGUI_DataModel.cxx index 0476f169..654451d8 100644 --- a/src/HYDROGUI/HYDROGUI_DataModel.cxx +++ b/src/HYDROGUI/HYDROGUI_DataModel.cxx @@ -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