From 6cc2f8a3a52d0c375458c7da4fe51e8160e38a88 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 10 Jun 2016 15:32:57 -0700 Subject: [PATCH] [core] Fix PropertyValue::set For runtime styling, it needs to overwrite any existing value. --- src/mbgl/style/paint_property.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/style/paint_property.hpp b/src/mbgl/style/paint_property.hpp index 7cb75781a..67aa2244e 100644 --- a/src/mbgl/style/paint_property.hpp +++ b/src/mbgl/style/paint_property.hpp @@ -36,7 +36,7 @@ public: } void set(const PropertyValue& value_) { - values.emplace(ClassID::Default, value_); + values[ClassID::Default] = value_; } void parse(const char* name, const JSValue& layer) {