summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/compound_expression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/expression/compound_expression.cpp')
-rw-r--r--src/mbgl/style/expression/compound_expression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/expression/compound_expression.cpp b/src/mbgl/style/expression/compound_expression.cpp
index 27dfe6c151..3dd0ee237b 100644
--- a/src/mbgl/style/expression/compound_expression.cpp
+++ b/src/mbgl/style/expression/compound_expression.cpp
@@ -664,10 +664,10 @@ const auto& errorCompoundExpression() {
const auto& textSectionCompoundExpression() {
static auto signature = detail::makeSignature("text-section", [](const EvaluationContext& params) -> Result<Value> {
- if (!params.formattedSection) {
+ if (!params.formattedSectionID) {
return EvaluationError {"Formatted section is unavailable in the current evaluation context."};
}
- return *params.formattedSection;
+ return *params.formattedSectionID;
});
return signature;
}