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