From ba3a86723c90d387663899653b60aae5f6864fc2 Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 27 Mar 2014 12:53:01 +0000 Subject: [PATCH] Fix issue #390. --- src/HYDROGUI/HYDROGUI_DataModel.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2