diff options
author | ptessier | 2017-05-01 14:08:29 +0000 |
---|---|---|
committer | ptessier | 2017-05-08 14:57:38 +0000 |
commit | f8f70118294d0e7eb423ca559afbf290fe3e598f (patch) | |
tree | 69c4477d9ae27f0cf660781df9d5702fbc9a66c1 /plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse | |
parent | 0427aa9a377af28389896d4723e53a75193ee95c (diff) | |
download | org.eclipse.papyrus-f8f70118294d0e7eb423ca559afbf290fe3e598f.tar.gz org.eclipse.papyrus-f8f70118294d0e7eb423ca559afbf290fe3e598f.tar.xz org.eclipse.papyrus-f8f70118294d0e7eb423ca559afbf290fe3e598f.zip |
Bug 515998 - [SequenceDiagram] Fix existed Tests for the Sequence
diagram
Change-Id: I7685ef98be7b7da275cecf8a3abd55c0a6c13d51
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse')
-rw-r--r-- | plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/IdentityAnchorHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/IdentityAnchorHelper.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/IdentityAnchorHelper.java index 53effd01357..ad16194ef82 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/IdentityAnchorHelper.java +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/IdentityAnchorHelper.java @@ -75,6 +75,9 @@ public class IdentityAnchorHelper { public static final double getYPercentage(final IdentityAnchor anchor) {
String id = anchor.getId();
id = id.substring(id.indexOf(X_Y_SEPARATOR_AS_STRING) + 1, id.length() - 1);
+ if(id.indexOf(END_ID)!=-1){
+ id = id.substring(0, id.indexOf(END_ID));
+ }
return Double.parseDouble(id);
}
|