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