From af01d6ffeea11d15731bb9ad868579341ef9ec49 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Wed, 30 Aug 2017 15:38:17 +0300 Subject: [core] Set Style::Impl::loaded only when finishing parsing style --- src/mbgl/style/style_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.1