Skip to content

Commit

Permalink
[1219] Fixed diagram svg export diamond arrow path
Browse files Browse the repository at this point in the history
Bug: eclipse-sirius#1219
Signed-off-by: Nicolas Vannier <nicolas.vannier@obeo.fr>
  • Loading branch information
nvannr committed May 17, 2022
1 parent fc22674 commit f1ad7c1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ private StringBuilder exportArrow(Position p1, Position p2, String arrowStyle, E
} else if (styleName.equals("InputFillClosedArrow")) { //$NON-NLS-1$
arrowExport = this.exportInputClosedArrow(p1, p2, style, true);
} else if (styleName.equals("Diamond")) { //$NON-NLS-1$
arrowExport = this.exportDiamondArrow(p1, p2, style, false);
arrowExport = this.exportDiamondArrow(p2, p1, style, false);
} else if (styleName.equals("FillDiamond")) { //$NON-NLS-1$
arrowExport = this.exportDiamondArrow(p1, p2, style, true);
arrowExport = this.exportDiamondArrow(p2, p1, style, true);
} else if (styleName.equals("InputArrowWithDiamond")) { //$NON-NLS-1$
arrowExport = this.exportInputArrowWithDiamond(p1, p2, style, false);
} else if (styleName.equals("InputArrowWithFillDiamond")) { //$NON-NLS-1$
Expand Down Expand Up @@ -328,7 +328,7 @@ private StringBuilder exportBasicDiamondPath(int strokeWidth) {
basicDiamondPathExport.append(" L "); //$NON-NLS-1$
basicDiamondPathExport.append(10 + strokeWidth * 2);
basicDiamondPathExport.append(" 0 L "); //$NON-NLS-1$
return basicDiamondPathExport.append(5 + strokeWidth);
return basicDiamondPathExport.append(5 + strokeWidth).append(" ").append(3.5 + strokeWidth); //$NON-NLS-1$
}

private StringBuilder exportOffsetArrowPath(int strokeWidth) {
Expand Down

0 comments on commit f1ad7c1

Please sign in to comment.