Skip to content

Commit

Permalink
Merge pull request #2954 from srahim/timob-10892
Browse files Browse the repository at this point in the history
[TIMOB-10892]Mapview crash on render
  • Loading branch information
WhichKatieDid committed Sep 14, 2012
2 parents 03b109c + e4dda9b commit b4151cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iphone/Classes/TiMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ -(void)render
if (![NSThread isMainThread]) {
TiThreadPerformOnMainThread(^{[self render];}, NO);
return;
}
}
//TIMOB-10892 if any of below conditions is true , regionthatfits returns invalid.
if (map == nil || map.bounds.size.width == 0 || map.bounds.size.height == 0) {
return;
}

if (region.center.latitude!=0 && region.center.longitude!=0)
{
if (regionFits) {
Expand Down

0 comments on commit b4151cc

Please sign in to comment.