Fix relationship not been fully drawn on Linux in some occasions
See Issue
@@ -286,9 +286,6 @@ extends RoundedPolylineConnection implements IDiagramConnectionFigure {
// Create a Path that fills the clipping area minus the label
Path path = new Path(null);
- // Bug in Mac using rectangles as Path
- // Fixes https://github.com/archimatetool/archi/issues/529
- if(PlatformUtils.isMac()) {
path.moveTo(g.x, g.y);
path.lineTo(l.x, l.y);
path.lineTo(l.x + l.width, l.y);
@@ -300,13 +297,8 @@ extends RoundedPolylineConnection implements IDiagramConnectionFigure {
path.lineTo(g.x + g.width, g.y + g.height);
path.lineTo(g.x + g.width, g.y);
path.lineTo(g.x, g.y);
- }
- else {
- path.addRectangle(l.x, l.y, l.width, l.height);
- path.addRectangle(g.x, g.y, g.width, g.height);
- }
- graphics.setClip(path);
+ graphics.clipPath(path);
// Monkey patch to fix NPE when connection is disabled when Viewpoint set
// If we set private field sharedClipping to false then SWTGraphics.checkSharedClipping() is not called
