Skip to content

Commit 34a792f

Browse files
committed
QVariant supports boolean
1 parent da0e474 commit 34a792f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsrulebasedlabeling.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ bool QgsRuleBasedLabeling::Rule::isFilterOK( const QgsFeature &f, QgsRenderConte
370370

371371
context.expressionContext().setFeature( f );
372372
QVariant res = mFilter->evaluate( &context.expressionContext() );
373-
return res.toInt() != 0;
373+
return res.toBool();
374374
}
375375

376376
bool QgsRuleBasedLabeling::Rule::isScaleOK( double scale ) const

0 commit comments

Comments
 (0)