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