git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Pull demo into jar
[nikiroo-utils.git]
/
src
/
jexer
/
TCheckbox.java
diff --git
a/src/jexer/TCheckbox.java
b/src/jexer/TCheckbox.java
index 556a11bec8e3965291ca4f2398062a46d8b208c6..939f3fed0272ccd9905ffd8f9c3bf24db53764ee 100644
(file)
--- a/
src/jexer/TCheckbox.java
+++ b/
src/jexer/TCheckbox.java
@@
-84,8
+84,7
@@
public final class TCheckbox extends TWidget {
* @return true if the mouse is currently on the checkbox
*/
private boolean mouseOnCheckbox(final TMouseEvent mouse) {
- if ((mouse != null)
- && (mouse.getY() == 0)
+ if ((mouse.getY() == 0)
&& (mouse.getX() >= 0)
&& (mouse.getX() <= 2)
) {