From ab3105aac9cfd0e3c376bc50271ece0ad59232e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 19 May 2015 15:01:33 +0200 Subject: [PATCH] don't mark the glyphs as parsed until we've actually parsed them --- src/mbgl/text/glyph_store.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mbgl/text/glyph_store.cpp b/src/mbgl/text/glyph_store.cpp index 853191218..10723af1a 100644 --- a/src/mbgl/text/glyph_store.cpp +++ b/src/mbgl/text/glyph_store.cpp @@ -167,7 +167,6 @@ GlyphPBF::GlyphPBF(const std::string& glyphURL, // parse the data we received. We are not doing this here since this callback is being // called from another (unknown) thread. data = res.data; - parsed = true; callback(this); } }); @@ -231,6 +230,8 @@ void GlyphPBF::parse(FontStack &stack) { } data.clear(); + + parsed = true; } bool GlyphPBF::isParsed() const {