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