Skip to content
Snippets Groups Projects
Commit 73127368 authored by Ulrich Schöpp's avatar Ulrich Schöpp
Browse files

Fix coordinate calculation


Issue-Ref: 4261
Signed-off-by: default avatarUlrich Schöpp <schoepp@fortiss.org>
parent 6dc6e46f
No related branches found
No related tags found
1 merge request!183Improve the safetycases editor
...@@ -90,8 +90,8 @@ public abstract class CircularContentVisualBase extends ContentVisualBase { ...@@ -90,8 +90,8 @@ public abstract class CircularContentVisualBase extends ContentVisualBase {
double angleRad = toRadians(angleDeg); double angleRad = toRadians(angleDeg);
double nx = cos(angleRad); double nx = cos(angleRad);
double ny = sin(angleRad); double ny = sin(angleRad);
double x = pb.getMinX() + w2 + radius * nx; double x = w2 + radius * nx;
double y = pb.getMinY() + h2 + radius * ny; double y = h2 + radius * ny;
return new DiagramCoordinate(x, y); return new DiagramCoordinate(x, y);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment