diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-11 12:12:57 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-11 14:34:46 +0200 |
commit | 3bd2d0e4d7d52dc88d30081922e1708f0d5a4bcf (patch) | |
tree | f2b143fc74c48283e8ad43005c4da8050bb88042 /src/mbgl/map | |
parent | f38330a9f58ca3b2664168c7830811055870bc42 (diff) | |
download | qtlocation-mapboxgl-3bd2d0e4d7d52dc88d30081922e1708f0d5a4bcf.tar.gz |
style::Style::getImage() returns optional<style::Image>
Diffstat (limited to 'src/mbgl/map')
-rw-r--r-- | src/mbgl/map/map_impl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mbgl/map/map_impl.cpp b/src/mbgl/map/map_impl.cpp index e4eb2e3e8c..af18720916 100644 --- a/src/mbgl/map/map_impl.cpp +++ b/src/mbgl/map/map_impl.cpp @@ -170,9 +170,7 @@ void Map::Impl::jumpTo(const CameraOptions& camera) { } void Map::Impl::onStyleImageMissing(const std::string& id, std::function<void()> done) { - if (style->getImage(id) == nullptr) { - observer.onStyleImageMissing(id); - } + if (!style->getImage(id)) observer.onStyleImageMissing(id); done(); onUpdate(); |