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