diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2017-05-31 12:04:36 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2017-05-31 12:04:36 -0700 |
commit | 17f6b2a132d19d0b2b4fab88cf7120148e0b438d (patch) | |
tree | 2d57cd306615e2e0f81096366357afcabaa3e73a | |
parent | 4443eba18fd9a64f366356fa7bdc74e95f5e55ab (diff) | |
download | qtlocation-mapboxgl-upstream/jrm-ios-image-source-hack.tar.gz |
fix pointerupstream/jrm-ios-image-source-hack
-rw-r--r-- | platform/darwin/src/MGLStyle.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLStyle.mm b/platform/darwin/src/MGLStyle.mm index a2a7100025..09a45c9c42 100644 --- a/platform/darwin/src/MGLStyle.mm +++ b/platform/darwin/src/MGLStyle.mm @@ -179,7 +179,7 @@ static NSURL *MGLStyleURL_emerald; } else if (auto rasterSource = rawSource->as<mbgl::style::RasterSource>()) { return [[MGLRasterSource alloc] initWithRawSource:rasterSource]; } else if (auto imageSource = rawSource->as<mbgl::style::ImageSource>()) { - return [[MGLImageSource alloc] initWithRawSource:rasterSource]; + return [[MGLImageSource alloc] initWithRawSource:imageSource]; } else { return [[MGLSource alloc] initWithRawSource:rawSource]; } |