summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlreduceaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlreduceaction.cpp')
-rw-r--r--src/uml/qumlreduceaction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uml/qumlreduceaction.cpp b/src/uml/qumlreduceaction.cpp
index ee98cd8c..2ed2bb0b 100644
--- a/src/uml/qumlreduceaction.cpp
+++ b/src/uml/qumlreduceaction.cpp
@@ -101,6 +101,8 @@ QUmlReduceAction::~QUmlReduceAction()
QModelingElement *QUmlReduceAction::clone() const
{
QUmlReduceAction *c = new QUmlReduceAction;
+ c->asQModelingObject()->setObjectName(this->asQModelingObject()->objectName());
+ c->asQModelingObject()->setProperty("role", this->asQModelingObject()->property("role"));
foreach (QUmlComment *element, ownedComments())
c->addOwnedComment(dynamic_cast<QUmlComment *>(element->clone()));
c->setName(name());