summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/symbol_layout.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-02-24 13:06:57 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-02-28 13:59:14 -0800
commit02d56488e40f1ae5d3408b3e9fe62166a27f4599 (patch)
tree336d2b9d41e44947aeb617655f8c7ce25a7c8a07 /src/mbgl/layout/symbol_layout.cpp
parent0d741b34399c21a2933e423d8e4d63aff081641e (diff)
downloadqtlocation-mapboxgl-02d56488e40f1ae5d3408b3e9fe62166a27f4599.tar.gz
[core] Eliminate Shaping::text
This was already accessible via SymbolFeature::text.
Diffstat (limited to 'src/mbgl/layout/symbol_layout.cpp')
-rw-r--r--src/mbgl/layout/symbol_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp
index e3c3d8946c..e1a4b0457f 100644
--- a/src/mbgl/layout/symbol_layout.cpp
+++ b/src/mbgl/layout/symbol_layout.cpp
@@ -363,7 +363,7 @@ void SymbolLayout::addFeature(const SymbolFeature& feature,
overscaling);
for (auto& anchor : anchors) {
- if (!shapedTextOrientations.first || !anchorIsTooClose(shapedTextOrientations.first.text, textRepeatDistance, anchor)) {
+ if (!feature.text || !anchorIsTooClose(*feature.text, textRepeatDistance, anchor)) {
addSymbolInstance(line, anchor);
}
}