Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
QVariant also supports booleans
  • Loading branch information
m-kuhn committed Apr 20, 2018
1 parent a75fa25 commit 5204fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgsrulebasedrenderer.cpp
Expand Up @@ -253,7 +253,7 @@ bool QgsRuleBasedRenderer::Rule::isFilterOK( const QgsFeature &f, QgsRenderConte

context->expressionContext().setFeature( f );
QVariant res = mFilter->evaluate( &context->expressionContext() );
return res.toInt() != 0;
return res.toBool();
}

bool QgsRuleBasedRenderer::Rule::isScaleOK( double scale ) const
Expand Down

0 comments on commit 5204fd3

Please sign in to comment.