don't mark the glyphs as parsed until we've actually parsed them

This commit is contained in:
Konstantin Käfer
2015-05-19 15:01:33 +02:00
parent 58c9e2687d
commit ab3105aac9

View File

@@ -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 {