Skip to content

Commit

Permalink
[333] Avoid to create useless StringValueStyle
Browse files Browse the repository at this point in the history
Before this commit a StringValueStyle was created due to a bug in ELK
that creates an empty list of junction points.
This also causes, as side effect, an edge that seems to be "customized".

Bug: #333
  • Loading branch information
lredor committed Jun 26, 2024
1 parent 10cf0d4 commit 397c22d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ private void addEdgeLayout(final GmfLayoutCommand command, final ElkEdge elkEdge
// coordinates
KVectorChain junctionPoints = elkEdge.getProperty(CoreOptions.JUNCTION_POINTS);
String serializedJP = null;
if (junctionPoints != null) {
if (junctionPoints != null && !junctionPoints.isEmpty()) {
for (KVector point : junctionPoints) {
ElkUtil.toAbsolute(point, elkEdge.getContainingNode());
}
Expand Down

0 comments on commit 397c22d

Please sign in to comment.