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