summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-10 15:32:57 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-13 17:22:05 -0700
commit6cc2f8a3a52d0c375458c7da4fe51e8160e38a88 (patch)
tree02e37fe8399fd97cd288191e3d20317e87763515
parent1529116ef6a3e2ece63adfa12e02f57a18efff27 (diff)
downloadqtlocation-mapboxgl-6cc2f8a3a52d0c375458c7da4fe51e8160e38a88.tar.gz
[core] Fix PropertyValue<T>::set
For runtime styling, it needs to overwrite any existing value.
-rw-r--r--src/mbgl/style/paint_property.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/paint_property.hpp b/src/mbgl/style/paint_property.hpp
index 7cb75781a3..67aa2244ec 100644
--- a/src/mbgl/style/paint_property.hpp
+++ b/src/mbgl/style/paint_property.hpp
@@ -36,7 +36,7 @@ public:
}
void set(const PropertyValue<T>& value_) {
- values.emplace(ClassID::Default, value_);
+ values[ClassID::Default] = value_;
}
void parse(const char* name, const JSValue& layer) {