summaryrefslogtreecommitdiff
path: root/src/mbgl/style/paint_property.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-08-31 17:13:16 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-09-06 12:52:14 -0700
commit3a48c60813b18c092c8d8d75c80a318bdd8859bb (patch)
tree46b12d272e40b3780bd39c9fc7c1c0ed1ed6d70f /src/mbgl/style/paint_property.hpp
parent3635b9f1476ffd5d8f38a7abdf5742faef012850 (diff)
downloadqtlocation-mapboxgl-3a48c60813b18c092c8d8d75c80a318bdd8859bb.tar.gz
[core] Add missing classed paint property getter
Diffstat (limited to 'src/mbgl/style/paint_property.hpp')
-rw-r--r--src/mbgl/style/paint_property.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/paint_property.hpp b/src/mbgl/style/paint_property.hpp
index 6da1ed53b4..070751616e 100644
--- a/src/mbgl/style/paint_property.hpp
+++ b/src/mbgl/style/paint_property.hpp
@@ -43,9 +43,9 @@ public:
return values.find(ClassID::Default) == values.end();
}
- const PropertyValue<T>& get() const {
+ const PropertyValue<T>& get(const optional<std::string>& klass) const {
static const PropertyValue<T> staticValue;
- const auto it = values.find(ClassID::Default);
+ const auto it = values.find(klass ? ClassDictionary::Get().lookup(*klass) : ClassID::Default);
return it == values.end() ? staticValue : it->second;
}