diff options
Diffstat (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.m')
-rw-r--r-- | AppKit/GTMUILocalizerAndLayoutTweaker.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.m b/AppKit/GTMUILocalizerAndLayoutTweaker.m index 91c6ffc..cae8a02 100644 --- a/AppKit/GTMUILocalizerAndLayoutTweaker.m +++ b/AppKit/GTMUILocalizerAndLayoutTweaker.m @@ -18,6 +18,7 @@ #import "GTMUILocalizerAndLayoutTweaker.h" #import "GTMUILocalizer.h" +#import "GTMNSNumber+64Bit.h" // Helper that will try to do a SizeToFit on any UI items and do the special // case handling we also need to end up with a usable UI item. It also takes @@ -160,7 +161,8 @@ static BOOL IsRightAnchored(NSView *view); // once we know this view's size. if (IsRightAnchored(subView)) { [rightAlignedSubViews addObject:subView]; - [rightAlignedSubViewDeltas addObject:[NSNumber numberWithDouble:delta]]; + NSNumber *nsDelta = [NSNumber gtm_numberWithCGFloat:delta]; + [rightAlignedSubViewDeltas addObject:nsDelta]; } } |