File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ public Component getTableCellRendererComponent(JTable table,
549
549
idxj = idx % div ;
550
550
idx /= div ;
551
551
552
- boolean reverseColors = cbReverseColors .isSelected ();
552
+ boolean straightColors = ! cbReverseColors .isSelected ();
553
553
554
554
if (!isSelected ) {
555
555
if (compareIndex >= 0 && idx >= 0 && idx != compareIndex && column >= valueStart ) {
@@ -569,16 +569,16 @@ public Component getTableCellRendererComponent(JTable table,
569
569
if (c1 != null ) {
570
570
double ratio = c1 / c0 ;
571
571
if (ratio >= 1 + diff .largeDiff / 100 ) {
572
- c .setBackground (reverseColors ? diff .largePlus : diff .largeMinus );
572
+ c .setBackground (straightColors ? diff .largePlus : diff .largeMinus );
573
573
} else
574
574
if (ratio <= 1 - diff .largeDiff / 100 ) {
575
- c .setBackground (reverseColors ? diff .largeMinus : diff .largePlus );
575
+ c .setBackground (straightColors ? diff .largeMinus : diff .largePlus );
576
576
} else
577
577
if (ratio >= 1 + diff .smallDiff / 100 ) {
578
- c .setBackground (reverseColors ? diff .smallPlus : diff .smallMinus );
578
+ c .setBackground (straightColors ? diff .smallPlus : diff .smallMinus );
579
579
} else
580
580
if (ratio <= 1 - diff .smallDiff / 100 ) {
581
- c .setBackground (reverseColors ? diff .smallMinus : diff .smallPlus );
581
+ c .setBackground (straightColors ? diff .smallMinus : diff .smallPlus );
582
582
} else {
583
583
c .setBackground (table .getBackground ());
584
584
}
You can’t perform that action at this time.
0 commit comments