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