diff options
author | Chris Loer <chris.loer@gmail.com> | 2018-10-02 17:03:50 -0700 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2018-10-15 13:15:46 -0700 |
commit | ce76bde13d0f4381ee861f81daf636defaff0bc5 (patch) | |
tree | e37d93d14fc64620069bac5488bae871af2fa431 /test/util | |
parent | bc718257748f1ad87658e85f8c31b574afca57a9 (diff) | |
download | qtlocation-mapboxgl-ce76bde13d0f4381ee861f81daf636defaff0bc5.tar.gz |
[core] Initial implementation of 'format' expression
Diffstat (limited to 'test/util')
-rw-r--r-- | test/util/merge_lines.test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/util/merge_lines.test.cpp b/test/util/merge_lines.test.cpp index d3a2ebae03..032a09ba21 100644 --- a/test/util/merge_lines.test.cpp +++ b/test/util/merge_lines.test.cpp @@ -24,7 +24,9 @@ public: optional<std::string> icon_, std::size_t index_) : SymbolFeature(std::make_unique<StubGeometryTileFeature>(std::move(id_), type_, std::move(geometry_), std::move(properties_))) { - text = std::move(text_); + if (text_) { + formattedText = TaggedString(*text_, SectionOptions(1.0, 0)); + } icon = std::move(icon_); index = index_; } |