diff options
Diffstat (limited to 'src/uml/qumlliteralunlimitednatural.cpp')
-rw-r--r-- | src/uml/qumlliteralunlimitednatural.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uml/qumlliteralunlimitednatural.cpp b/src/uml/qumlliteralunlimitednatural.cpp index 02db03f6..4b641a4b 100644 --- a/src/uml/qumlliteralunlimitednatural.cpp +++ b/src/uml/qumlliteralunlimitednatural.cpp @@ -86,6 +86,8 @@ QUmlLiteralUnlimitedNatural::~QUmlLiteralUnlimitedNatural() QModelingElement *QUmlLiteralUnlimitedNatural::clone() const { QUmlLiteralUnlimitedNatural *c = new QUmlLiteralUnlimitedNatural; + 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()); |