Use controlShadowColor when the color for NSBoxSeparator is not set. Xcode is not setting colors for these types of boxes in xibs.

Cherrypicking paullanders' r39276 (Testplant branch).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39285 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ivucica 2016-01-17 21:36:11 +00:00
parent d68cbe712f
commit b8eb05ec70

View file

@ -3238,7 +3238,12 @@ typedef enum {
if (boxType == NSBoxSeparator)
{
[[box borderColor] set];
color = [box borderColor];
if (!color || [color isEqual:[NSColor clearColor]])
{
color = [NSColor controlShadowColor];
}
[color set];
NSRectFill([box borderRect]);
return;
}