Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2016-09-29 08:00:23 +0000
committerJuergen Haug2016-09-29 08:00:23 +0000
commit8cf4e57f30cdbd2bbcc26eb59ae800b6a4e8b398 (patch)
treeeef301a55afb80d6efd452ea6cad560db1991c0e /plugins/org.eclipse.etrice.ui.behavior.fsm/src
parent997adc473cb628a22ae725d9a8e0cfd59c21ce63 (diff)
downloadorg.eclipse.etrice-8cf4e57f30cdbd2bbcc26eb59ae800b6a4e8b398.tar.gz
org.eclipse.etrice-8cf4e57f30cdbd2bbcc26eb59ae800b6a4e8b398.tar.xz
org.eclipse.etrice-8cf4e57f30cdbd2bbcc26eb59ae800b6a4e8b398.zip
[misc] minor dev improvements
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.behavior.fsm/src')
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior.fsm/src/org/eclipse/etrice/ui/behavior/fsm/support/FSMSupportUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.ui.behavior.fsm/src/org/eclipse/etrice/ui/behavior/fsm/support/FSMSupportUtil.java b/plugins/org.eclipse.etrice.ui.behavior.fsm/src/org/eclipse/etrice/ui/behavior/fsm/support/FSMSupportUtil.java
index e0e83450c..999b607e6 100644
--- a/plugins/org.eclipse.etrice.ui.behavior.fsm/src/org/eclipse/etrice/ui/behavior/fsm/support/FSMSupportUtil.java
+++ b/plugins/org.eclipse.etrice.ui.behavior.fsm/src/org/eclipse/etrice/ui/behavior/fsm/support/FSMSupportUtil.java
@@ -858,7 +858,8 @@ public class FSMSupportUtil {
continue;
double[] relPos = positionProvider.getSubPosition((StateGraphNode) childBo);
- gaService.setLocation(child.getGraphicsAlgorithm(), (int)(relPos[0] * ps.getWidth()), (int)(relPos[1]*ps.getHeight()));
+ if(relPos != null)
+ gaService.setLocation(child.getGraphicsAlgorithm(), (int)(relPos[0] * ps.getWidth()), (int)(relPos[1]*ps.getHeight()));
}
}

Back to the top