summaryrefslogtreecommitdiffstats
path: root/src/uml/qumlparameterableelement.cpp
diff options
context:
space:
mode:
authorSandro S. Andrade <sandroandrade@kde.org>2013-08-25 23:35:56 -0300
committerSandro S. Andrade <sandroandrade@kde.org>2013-08-26 04:33:49 +0200
commitb15e532fc664d4c5d91095bb22093a68e3bdfd39 (patch)
tree6ff325651181e9082bf047326d873e07c0e77470 /src/uml/qumlparameterableelement.cpp
parent5392c0a8ce5545783c86d830e8c321d487538613 (diff)
Add subsetted property adjustment for single-valued properties
Change-Id: Ibea136f1eeccc8a1f3e9dcb1e86cab111daf3c9c Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/uml/qumlparameterableelement.cpp')
-rw-r--r--src/uml/qumlparameterableelement.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uml/qumlparameterableelement.cpp b/src/uml/qumlparameterableelement.cpp
index e2072bd3..d8256fa3 100644
--- a/src/uml/qumlparameterableelement.cpp
+++ b/src/uml/qumlparameterableelement.cpp
@@ -75,7 +75,13 @@ void QUmlParameterableElement::setOwningTemplateParameter(QUmlTemplateParameter
// This is a read-write association end
if (_owningTemplateParameter != owningTemplateParameter) {
+ // Adjust subsetted properties
+
_owningTemplateParameter = owningTemplateParameter;
+
+ // Adjust subsetted properties
+ setTemplateParameter(owningTemplateParameter);
+ setOwner(owningTemplateParameter);
}
}