summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2010-10-16 00:54:01 -0700
committerGrant Paul <chpwn@chpwn.com>2010-10-16 00:55:04 -0700
commit1edcdccff91b5e32f9fcf40cfcbd00c98bb237ed (patch)
tree1aecd7344ef521817fa173997091d74de70a94fe
parent3c216e5ece97fb293ef6ebc0ad38e0513d736c22 (diff)
Use NSMakeSize rather than CGSizeMake for creating a NSSize -- if it's stored in a NSValue using -valueWithSize:, then it's an NSSize, not a CGSize. It's a CGSize if you use -valueWithCGSize:.
-rwxr-xr-x[-rw-r--r--]UICaboodle/BrowserView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index ff39763..9703227 100644..100755
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -383,7 +383,7 @@ static Class $UIWebBrowserView;
if ([scroller_ respondsToSelector:@selector(setScrollerIndicatorSubrect:)])
[scroller_ setScrollerIndicatorSubrect:subrect];
- [document_ setValue:[NSValue valueWithSize:CGSizeMake(subrect.size.width, subrect.size.height)] forGestureAttribute:UIGestureAttributeVisibleSize];
+ [document_ setValue:[NSValue valueWithSize:NSMakeSize(subrect.size.width, subrect.size.height)] forGestureAttribute:UIGestureAttributeVisibleSize];
CGSize size(size_);
size.height += extra;