Skip to content

Commit dec7922

Browse files
committed
SwingMessageWidget: fix label detection
Thanks to Jan Eglinger for noticing my mistake.
1 parent 84c30c0 commit dec7922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/ui/swing/widget/SwingMessageWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public String getValue() {
6161
@Override
6262
public boolean isLabeled() {
6363
final String l = get().getItem().getLabel();
64-
return l == null || l.isEmpty();
64+
return l != null && !l.isEmpty();
6565
}
6666

6767
@Override

0 commit comments

Comments
 (0)