[vcs-log] fix fade-out color when only one commit is selected in the table

This commit is contained in:
Julia Beliaeva
2016-09-29 20:22:45 +03:00
parent b587c543e6
commit f4c20f63db
@@ -229,6 +229,9 @@ public class GraphCommitCellRenderer extends ColoredTableCellRenderer {
nextWidth = myEmptyPainter.getSize().width;
}
if (row == 0 && table.getRowCount() == 1) {
customizeRefsPainter(myEmptyPainter, ContainerUtil.emptyList(), foreground);
}
myWidth = Math.max(Math.max(prevWidth, nextWidth), LabelPainter.GRADIENT_WIDTH);
}
}