diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-04-25 13:59:43 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-25 13:59:43 -0700 |
commit | 0339639e3d7ac9dafda22a7f44d3d03780cf1470 (patch) | |
tree | 1b7bede7261bc7733028dc1e7bf98168a231c55e | |
parent | 76d6aba8f29645cb4cb97315d6a584fc8c6ed8cb (diff) | |
download | qtlocation-mapboxgl-0339639e3d7ac9dafda22a7f44d3d03780cf1470.tar.gz |
[osx] Fixed crash on launch on OS X 10.10
Fixed a crash introduced in #4783 that occurs when launching osxapp. -[NSString localizedCapitalizedString] is only available on OS X 10.11 and above.
-rw-r--r-- | platform/osx/app/LocationCoordinate2DTransformer.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/app/LocationCoordinate2DTransformer.m b/platform/osx/app/LocationCoordinate2DTransformer.m index f58dfecc06..59654f1676 100644 --- a/platform/osx/app/LocationCoordinate2DTransformer.m +++ b/platform/osx/app/LocationCoordinate2DTransformer.m @@ -25,7 +25,7 @@ if (![value isKindOfClass:[NSValue class]]) { return nil; } - return [_coordinateFormatter stringForObjectValue:value].localizedCapitalizedString; + return [_coordinateFormatter stringForObjectValue:value].capitalizedString; } @end |