summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-05-19 15:01:33 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-05-19 16:13:36 +0200
commitab3105aac9cfd0e3c376bc50271ece0ad59232e9 (patch)
tree5335bc05fa166ea523b1b4cbb58fb959befd0e30 /src
parent58c9e2687de5befc69cb50321d303d7fa704cbfa (diff)
downloadqtlocation-mapboxgl-ab3105aac9cfd0e3c376bc50271ece0ad59232e9.tar.gz
don't mark the glyphs as parsed until we've actually parsed them
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/text/glyph_store.cpp3
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 {