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