diff --git a/src/core/qgsrulebasedlabeling.cpp b/src/core/qgsrulebasedlabeling.cpp index 8911ea17ec5..d059b150ca3 100644 --- a/src/core/qgsrulebasedlabeling.cpp +++ b/src/core/qgsrulebasedlabeling.cpp @@ -370,7 +370,7 @@ bool QgsRuleBasedLabeling::Rule::isFilterOK( const QgsFeature &f, QgsRenderConte context.expressionContext().setFeature( f ); QVariant res = mFilter->evaluate( &context.expressionContext() ); - return res.toInt() != 0; + return res.toBool(); } bool QgsRuleBasedLabeling::Rule::isScaleOK( double scale ) const