summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlbehavioralfeature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uml/qumlbehavioralfeature.cpp')
-rw-r--r--src/uml/qumlbehavioralfeature.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uml/qumlbehavioralfeature.cpp b/src/uml/qumlbehavioralfeature.cpp
index 55e7a816..80f097b3 100644
--- a/src/uml/qumlbehavioralfeature.cpp
+++ b/src/uml/qumlbehavioralfeature.cpp
@@ -92,6 +92,8 @@ QUmlBehavioralFeature::~QUmlBehavioralFeature()
QModelingElement *QUmlBehavioralFeature::clone() const
{
QUmlBehavioralFeature *c = new QUmlBehavioralFeature;
+ 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());