Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/policies/AdjustBorderItemAnchorsEditPolicy.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/policies/AdjustBorderItemAnchorsEditPolicy.java b/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/policies/AdjustBorderItemAnchorsEditPolicy.java
index eeb9ab2bd..905d24e08 100644
--- a/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/policies/AdjustBorderItemAnchorsEditPolicy.java
+++ b/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/linklf/policies/AdjustBorderItemAnchorsEditPolicy.java
@@ -189,8 +189,13 @@ public class AdjustBorderItemAnchorsEditPolicy extends
protected PrecisionPoint rotateAnchorLocation(ConnectionAnchor anchor,
int quarters) {
String terminal = ((BaseSlidableAnchor) anchor).getTerminal();
- PrecisionPoint result = BaseSlidableAnchor
+ PrecisionPoint result;
+ if (terminal.length() == 0) {
+ result = new PrecisionPoint(0.5, 0.5);
+ } else {
+ result = BaseSlidableAnchor
.parseTerminalString(terminal);
+ }
for (int i = 0; i < quarters; i++) {
double newX = 1. - result.preciseY();
double newY = result.preciseX();

Back to the top