diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-05-19 15:01:33 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-05-19 16:13:36 +0200 |
commit | ab3105aac9cfd0e3c376bc50271ece0ad59232e9 (patch) | |
tree | 5335bc05fa166ea523b1b4cbb58fb959befd0e30 /src/mbgl/text/glyph_store.cpp | |
parent | 58c9e2687de5befc69cb50321d303d7fa704cbfa (diff) | |
download | qtlocation-mapboxgl-ab3105aac9cfd0e3c376bc50271ece0ad59232e9.tar.gz |
don't mark the glyphs as parsed until we've actually parsed them
Diffstat (limited to 'src/mbgl/text/glyph_store.cpp')
-rw-r--r-- | src/mbgl/text/glyph_store.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/text/glyph_store.cpp b/src/mbgl/text/glyph_store.cpp index 8531912185..10723af1a7 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 { |