Skip to content
Permalink
Browse files

QVariant also supports booleans

  • Loading branch information
m-kuhn committed Apr 20, 2018
1 parent a75fa25 commit 5204fd35d2f4598e9ee40cbd65bf191afe51c10e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgsrulebasedrenderer.cpp
@@ -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

0 comments on commit 5204fd3

Please sign in to comment.
You can’t perform that action at this time.