Skip to content

Commit

Permalink
Merge pull request #1 from himi/HFix-Cluster-PortLabel-1
Browse files Browse the repository at this point in the history
Bug Fix: When port with added node in the cluster crashes PlantUML
  • Loading branch information
arnaudroques authored Jun 18, 2020
2 parents c758b5b + 0bdb8ae commit dc34dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/sourceforge/plantuml/svek/Cluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -835,12 +835,12 @@ private void printInternal(StringBuilder sb, Collection<Line> lines, StringBound
printCluster1(sb, lines, stringBounder);

final Node added = printCluster2(sb, lines, stringBounder, dotMode, graphvizVersion, type);
if (entityPositionsExceptNormal.size() > 0 && added == null) {
if (entityPositionsExceptNormal.size() > 0) {
if (hasPort()) {
sb.append(empty() + " [shape=rect,width=.01,height=.01,label=");
sb.append(label);
sb.append("];");
} else {
} else if (added == null) {
sb.append(empty() + " [shape=point,width=.01,label=\"\"];");
}
SvekUtils.println(sb);
Expand Down

0 comments on commit dc34dbc

Please sign in to comment.