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