fix gridColor when decoding a CPTableView

Don't default to a gray color when there is no grid color in the cib.
The tableview theme will automatically set the correct grid color.
This commit is contained in:
Klaas Pieter Annema committed 2010-08-26 16:29:46 +02:00
1 parent 9a42e12985
commit f4e7386a0a
1 file changed
+1 -1
+1 -1
View File
@@ -3545,7 +3545,7 @@ var CPTableViewDataSourceKey = @"CPTableViewDataSourceKey",
_intercellSpacing = [aCoder decodeSizeForKey:CPTableViewIntercellSpacingKey] || _CGSizeMake(3.0, 2.0);
[self setGridColor:[aCoder decodeObjectForKey:CPTableViewGridColorKey] || [CPColor grayColor]];
[self setGridColor:[aCoder decodeObjectForKey:CPTableViewGridColorKey]];
_gridStyleMask = [aCoder decodeIntForKey:CPTableViewGridStyleMaskKey] || CPTableViewGridNone;
_usesAlternatingRowBackgroundColors = [aCoder decodeObjectForKey:CPTableViewUsesAlternatingBackgroundKey];