Skip to content

Commit

Permalink
fix bug: if语句中的condition恒为true (SameObjEquals) #89
Browse files Browse the repository at this point in the history
  • Loading branch information
SONG WANG committed Apr 17, 2017
1 parent acef2d3 commit 3bd2ea6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private JPanel getCalendarPanel() {
*/
protected Color getButtonColor(final SerialDate targetDate) {

if (this.date.equals(this.date)) {
if (targetDate.equals(this.date)) {
return this.dateButtonColor;
}
else if (targetDate.getMonth() == this.date.getMonth()) {
Expand Down

0 comments on commit 3bd2ea6

Please sign in to comment.