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