diff options
author | Juergen Haug | 2016-09-29 08:00:23 +0000 |
---|---|---|
committer | Juergen Haug | 2016-09-29 08:00:23 +0000 |
commit | 8cf4e57f30cdbd2bbcc26eb59ae800b6a4e8b398 (patch) | |
tree | eef301a55afb80d6efd452ea6cad560db1991c0e /plugins/org.eclipse.etrice.ui.behavior.fsm/src | |
parent | 997adc473cb628a22ae725d9a8e0cfd59c21ce63 (diff) | |
download | org.eclipse.etrice-8cf4e57f30cdbd2bbcc26eb59ae800b6a4e8b398.tar.gz org.eclipse.etrice-8cf4e57f30cdbd2bbcc26eb59ae800b6a4e8b398.tar.xz org.eclipse.etrice-8cf4e57f30cdbd2bbcc26eb59ae800b6a4e8b398.zip |
[misc] minor dev improvements
Change-Id: Ifc2ff4284db35f81c12ed012d7f88b412350f459
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.java | 3 |
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())); } } |