From 98ac5ce37f341215dfffdfdf87d0bd6a969863b2 Mon Sep 17 00:00:00 2001 From: yanis60 Date: Sun, 22 Jan 2023 18:42:25 +0100 Subject: [PATCH] fixed objectName children changes when copying items --- limereport/lrpagedesignintf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/limereport/lrpagedesignintf.cpp b/limereport/lrpagedesignintf.cpp index a45567a..9862663 100644 --- a/limereport/lrpagedesignintf.cpp +++ b/limereport/lrpagedesignintf.cpp @@ -2148,7 +2148,9 @@ bool PasteCommand::insertItem(ItemsReaderIntf::Ptr reader) if (page()->reportItemsByName(item->objectName()).size()>1){ item->setObjectName(objectName); } + foreach (BaseDesignIntf* child, item->childBaseItems()){ + if (page()->reportItemsByName(child->objectName()).size() == 0) changeName(page(), child); }; m_itemNames.push_back(item->objectName());