summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-08-30 15:38:17 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-08-30 16:43:13 +0300
commitaf01d6ffeea11d15731bb9ad868579341ef9ec49 (patch)
tree73d3217668fff2bbd25b39518eea61a3ae0c0bd8
parente1dfdc93383c29b02964456df5cd08ef2635c6d5 (diff)
downloadqtlocation-mapboxgl-af01d6ffeea11d15731bb9ad868579341ef9ec49.tar.gz
[core] Set Style::Impl::loaded only when finishing parsing style
-rw-r--r--src/mbgl/style/style_impl.cpp3
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();
}