Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Fix PropertyValue<T>::set
Browse files Browse the repository at this point in the history
For runtime styling, it needs to overwrite any existing value.
  • Loading branch information
jfirebaugh committed Jun 14, 2016
1 parent 1529116 commit 6cc2f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/style/paint_property.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PaintProperty {
}

void set(const PropertyValue<T>& value_) {
values.emplace(ClassID::Default, value_);
values[ClassID::Default] = value_;
}

void parse(const char* name, const JSValue& layer) {
Expand Down

0 comments on commit 6cc2f8a

Please sign in to comment.