Skip to content

Commit

Permalink
workaround empty label problem
Browse files Browse the repository at this point in the history
  • Loading branch information
tischda committed Feb 10, 2014
1 parent 8d77597 commit 52d95c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/umlgraph/doclet/ClassGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ private void relation(Options opt, RelationType rt, ClassDoc from, String fromNa
w.println("\t// " + fromName + " " + rt.toString() + " " + toName);
w.println("\t" + relationNode(from, fromName) + " -> " + relationNode(to, toName) + " [" +
"taillabel=\"" + tailLabel + "\", " +
"label=\"" + guillemize(opt, label) + "\", " +
((label == null || label.isEmpty()) ? "label=\" \"" : "label=\"" + guillemize(opt, label) + "\", ") +
"headlabel=\"" + headLabel + "\", " +
"fontname=\"" + opt.edgeFontName + "\", " +
"fontcolor=\"" + opt.edgeFontColor + "\", " +
Expand Down Expand Up @@ -845,7 +845,7 @@ public void printInferredRelations(ClassDoc c) {
RelationPattern rp = getClassInfo(c.toString()).getRelation(fri.cd.toString());
if (rp == null) {
String destAdornment = fri.multiple ? "*" : "";
relation(opt, opt.inferRelationshipType, c, fri.cd, "", " ", destAdornment);
relation(opt, opt.inferRelationshipType, c, fri.cd, "", "", destAdornment);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/umlgraph/doclet/Version.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Automatically generated file */
package org.umlgraph.doclet;
class Version { public static String VERSION = "R5_6_6-1-g9240c4";}
class Version { public static String VERSION = "R5_6_6-8-g8d7759";}

0 comments on commit 52d95c3

Please sign in to comment.