Guest User

Untitled

a guest
Nov 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. diff --git CalabashJS/CalabashJSLib/LPWebQuery.m CalabashJS/CalabashJSLib/LPWebQuery.m
  2. index a9593c1..a7e49d7 100644
  3. --- CalabashJS/CalabashJSLib/LPWebQuery.m
  4. +++ CalabashJS/CalabashJSLib/LPWebQuery.m
  5. @@ -6,6 +6,10 @@
  6. // Copyright (c) 2012 Trifork. All rights reserved.
  7. //
  8.  
  9. +#ifndef DEBUG
  10. +#define DEBUG 0
  11. +#endif
  12. +
  13. #import "LPWebQuery.h"
  14. #import "LPJSONUtils.h"
  15. @implementation LPWebQuery
  16. @@ -63,8 +67,8 @@
  17. CGPoint screenCenter = CGPointMake(webViewPoint.x + center.x, webViewPoint.y + center.y);
  18. if (!CGPointEqualToPoint(CGPointZero, center) && [webView pointInside:center withEvent:nil])
  19. {
  20. - NSDictionary *centerDict = (NSDictionary*)CGPointCreateDictionaryRepresentation(screenCenter);
  21. - [dres setValue:[centerDict autorelease] forKey:@"center"];
  22. + NSDictionary *centerDict = (__bridge_transfer NSDictionary*)CGPointCreateDictionaryRepresentation(screenCenter);
  23. + [dres setValue:centerDict forKey:@"center"];
  24. [dres setValue:webView forKey:@"webView"];
  25. [result addObject:dres];
  26. if (DEBUG)
Add Comment
Please, Sign In to add comment