Skip to content

Commit ddf9946

Browse files
committed
SwingTextDisplayPanel: fix equality check
Hyperlink activation was being performed if the event was NOT equal to an activation event. Should have been an == test.
1 parent 862a692 commit ddf9946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/ui/swing/viewer/text/SwingTextDisplayPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void hyperlinkUpdate(HyperlinkEvent e) {
146146
else if (e.getEventType() == HyperlinkEvent.EventType.EXITED) {
147147
hyperlinkStatus(null);
148148
}
149-
else if (e.getEventType() != HyperlinkEvent.EventType.ACTIVATED) {
149+
else if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
150150
hyperlinkActivate(e.getURL());
151151
}
152152
}

0 commit comments

Comments
 (0)