diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-08-30 15:38:17 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-08-30 16:43:13 +0300 |
commit | af01d6ffeea11d15731bb9ad868579341ef9ec49 (patch) | |
tree | 73d3217668fff2bbd25b39518eea61a3ae0c0bd8 | |
parent | e1dfdc93383c29b02964456df5cd08ef2635c6d5 (diff) | |
download | qtlocation-mapboxgl-af01d6ffeea11d15731bb9ad868579341ef9ec49.tar.gz |
[core] Set Style::Impl::loaded only when finishing parsing style
-rw-r--r-- | src/mbgl/style/style_impl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/style/style_impl.cpp b/src/mbgl/style/style_impl.cpp index 0fb49d1d22..848886e9d2 100644 --- a/src/mbgl/style/style_impl.cpp +++ b/src/mbgl/style/style_impl.cpp @@ -88,7 +88,7 @@ void Style::Impl::parse(const std::string& json_) { } mutated = false; - loaded = true; + loaded = false; json = json_; sources.clear(); @@ -118,6 +118,7 @@ void Style::Impl::parse(const std::string& json_) { spriteLoader->load(parser.spriteURL, scheduler, fileSource); glyphURL = parser.glyphURL; + loaded = true; observer->onStyleLoaded(); } |