[core] Avoid calling AnnotationManager::updateStyle until the style is loaded

Fixes #3037
This commit is contained in:
John Firebaugh
2015-11-18 13:21:16 -08:00
committed by Justin R. Miller
parent fcec19b835
commit db1c4f2cc2
3 changed files with 8 additions and 1 deletions

View File

@@ -169,7 +169,7 @@ void MapContext::update() {
data.setAnimationTime(Clock::now());
if (updateFlags & Update::Annotations) {
if (style->isLoaded() && updateFlags & Update::Annotations) {
data.getAnnotationManager()->updateStyle(*style);
updateFlags |= Update::Classes;
}