diff options
author | Chris Loer <chris.loer@gmail.com> | 2018-10-01 14:06:49 -0700 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2018-10-15 13:15:46 -0700 |
commit | d4c9b21bae5702dff6670dddf771385103e70504 (patch) | |
tree | 06c9cddfee44acb24b4e1d16efefbc9d8edbf14e /src/mbgl/style | |
parent | fdfb9386a6732d5a00c5c205013aa1d9ed8b91a4 (diff) | |
download | qtlocation-mapboxgl-d4c9b21bae5702dff6670dddf771385103e70504.tar.gz |
[core, tests] Don't break text-field support "identity functions"
Diffstat (limited to 'src/mbgl/style')
-rw-r--r-- | src/mbgl/style/conversion/function.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/style/conversion/function.cpp b/src/mbgl/style/conversion/function.cpp index 34ac52ec1b..5877d0eb7c 100644 --- a/src/mbgl/style/conversion/function.cpp +++ b/src/mbgl/style/conversion/function.cpp @@ -700,6 +700,9 @@ optional<std::unique_ptr<Expression>> convertFunctionToExpression(type::Type typ [&] (const type::Array& array) -> optional<std::unique_ptr<Expression>> { return assertion(array, get(literal(*property))); }, + [&] (const type::FormattedType&) -> optional<std::unique_ptr<Expression>> { + return format(get(literal(*property))); + }, [&] (const auto&) -> optional<std::unique_ptr<Expression>> { assert(false); // No properties use this type. return nullopt; |