Fixed wrong gradient color on Mac with Default theme.

This commit is contained in:
Sergey Malenkov
2014-11-10 21:33:29 +03:00
parent 97fd2fa3db
commit 3573848a34
@@ -43,7 +43,8 @@ public class GradientViewport extends JViewport {
super.paint(g);
g = g.create();
try {
Color background = getBackground();
Component view = getView();
Color background = view == null ? null : view.getBackground();
Component header = getHeader();
if (header != null) {
header.setBounds(0, 0, getWidth(), header.getPreferredSize().height);