aboutsummaryrefslogtreecommitdiff
path: root/AppKit
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2010-03-09 22:05:45 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2010-03-09 22:05:45 +0000
commita04d6910cfb3faef62b09bd2c2e621b1ce2a6efd (patch)
treeff497a7c9600336bfaa3aba9b2696e1c7761bdb5 /AppKit
parentf736aed5642b3c7f19533653e1ddfd4599f1ee7d (diff)
[Author: thomasvl]
Make the size change math right. R=dmaclach DELTA=1 (0 added, 0 deleted, 1 changed)
Diffstat (limited to 'AppKit')
-rw-r--r--AppKit/GTMUILocalizerAndLayoutTweaker.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.m b/AppKit/GTMUILocalizerAndLayoutTweaker.m
index 6c1ae78..771df9d 100644
--- a/AppKit/GTMUILocalizerAndLayoutTweaker.m
+++ b/AppKit/GTMUILocalizerAndLayoutTweaker.m
@@ -337,7 +337,7 @@ static BOOL IsRightAnchored(NSView *view);
}
// Return how much things changed
- return NSWidth(initialRect) - finalSize.width;
+ return finalSize.width - NSWidth(initialRect);
}
#endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5