also update child layers

This commit is contained in:
Konstantin Käfer
2014-06-27 19:15:33 +02:00
parent a41f0db7dd
commit 8feedf7fc2

View File

@@ -48,6 +48,15 @@ void StyleLayer::setClasses(const std::vector<std::string> &class_names, const t
appliedProperties.add(ClassID::Fallback, begin, end, value);
}
}
// Update all child layers as well.
if (layers) {
for (std::shared_ptr<StyleLayer> &layer : *layers) {
if (layer) {
layer->setClasses(class_names, now, defaultTransition);
}
}
}
}
// Helper function for applying all properties of a a single class that haven't been applied yet.