Skip to content

Commit

Permalink
Fix: (of fix!) labels for vertices and edges are now updated during c…
Browse files Browse the repository at this point in the history
…alls to

update() or updateAndWait().
  • Loading branch information
brunomnsilva committed Mar 7, 2020
1 parent e7d5f93 commit 6a64440
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified releases/JavaFXSmartGraph-0.9.jar
Binary file not shown.
Binary file modified releases/JavaFXSmartGraph-0.9.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ private void updateLabels() {
if (vertexNode != null) {
SmartLabel label = vertexNode.getAttachedLabel();
if(label != null) {
label.setText(v.element().toString());
label.setText(v.element() != null ? v.element().toString() : "<NULL>");
}

}
Expand All @@ -690,7 +690,7 @@ private void updateLabels() {
if (edgeNode != null) {
SmartLabel label = edgeNode.getAttachedLabel();
if (label != null) {
label.setText(e.element().toString());
label.setText(e.element() != null ? e.element().toString() : "<NULL>");
}
}
});
Expand Down

0 comments on commit 6a64440

Please sign in to comment.