Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2016-05-24 09:30:29 +0000
committerGerrit Code Review @ Eclipse.org2016-05-24 10:35:03 +0000
commit4984d0f21d4c5f9460880f81d9dbacf8c2e40969 (patch)
tree4717ceda025baef63e1b5bc0e942b9bee85ab74a /plugins/uml
parent43f1fe0aaf1feac44f7ad34e9b874389273a1480 (diff)
downloadorg.eclipse.papyrus-4984d0f21d4c5f9460880f81d9dbacf8c2e40969.tar.gz
org.eclipse.papyrus-4984d0f21d4c5f9460880f81d9dbacf8c2e40969.tar.xz
org.eclipse.papyrus-4984d0f21d4c5f9460880f81d9dbacf8c2e40969.zip
Bug 494112 - [Class diagram] Adding a redefinable template signature via an assistant corrupts diagram
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/locator/PortPositionLocator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/locator/PortPositionLocator.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/locator/PortPositionLocator.java
index 8ae5859b103..6c36aebb84e 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/locator/PortPositionLocator.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/locator/PortPositionLocator.java
@@ -432,7 +432,7 @@ public class PortPositionLocator implements IBorderItemLocator {
// Refresh nodeShape bounds in case of resize
RoundedRectangleNodePlateFigure nodePlateFigure = FigureUtils.findChildFigureInstance(figure, RoundedRectangleNodePlateFigure.class);
- if (figure instanceof RoundedRectangleNodePlateFigure || null != nodePlateFigure) {
+ if (figure instanceof RoundedRectangleNodePlateFigure && nodePlateFigure != null) {
for (Object child : nodePlateFigure.getChildren()) {
if (child instanceof IFigure) {
((IFigure) child).setBounds(rect);

Back to the top