Skip to content

Commit

Permalink
Fixed with nib2cib: CPBox title position 'none' was converted to 'on …
Browse files Browse the repository at this point in the history
…top'.
  • Loading branch information
aljungberg committed Feb 24, 2012
1 parent a16388b commit 87cc62d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tools/nib2cib/NSBox.j
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
_contentMargin = [aCoder decodeSizeForKey:@"NSOffsets"];

_title = [[aCoder decodeObjectForKey:@"NSTitleCell"] objectValue] || @"";
_titlePosition = [aCoder decodeObjectForKey:@"NSTitlePosition"] || CPAtTop;
_titlePosition = [aCoder decodeObjectForKey:@"NSTitlePosition"];
if (_titlePosition === undefined)
_titlePosition = CPAtTop;
}

return self;
Expand Down

0 comments on commit 87cc62d

Please sign in to comment.