Skip to content

Commit

Permalink
QVariant supports boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 10, 2019
1 parent da0e474 commit 34a792f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsrulebasedlabeling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34a792f

Please sign in to comment.