git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e24436
)
JAL-3446 from JAL-3253-applet Tree Canvas bug fix
author
BobHanson
<hansonr@stolaf.edu>
Tue, 9 Jun 2020 06:20:53 +0000
(
01:20
-0500)
committer
BobHanson
<hansonr@stolaf.edu>
Tue, 9 Jun 2020 06:20:53 +0000
(
01:20
-0500)
- was possible to right-click off the node to get a NullPointer
exception.
src/jalview/gui/TreeCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/TreeCanvas.java
b/src/jalview/gui/TreeCanvas.java
index
29ba52b
..
e59dfcc
100755
(executable)
--- a/
src/jalview/gui/TreeCanvas.java
+++ b/
src/jalview/gui/TreeCanvas.java
@@
-761,7
+761,9
@@
public class TreeCanvas extends JPanel implements MouseListener, Runnable,
*/
if (e.isPopupTrigger())
{
- chooseSubtreeColour();
+ if (highlightNode != null) {
+ chooseSubtreeColour();
+ }
e.consume(); // prevent mouseClicked happening
}
}