Skip to content

Commit 5204fd3

Browse files
committedApr 20, 2018
QVariant also supports booleans
1 parent a75fa25 commit 5204fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/symbology/qgsrulebasedrenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ bool QgsRuleBasedRenderer::Rule::isFilterOK( const QgsFeature &f, QgsRenderConte
253253

254254
context->expressionContext().setFeature( f );
255255
QVariant res = mFilter->evaluate( &context->expressionContext() );
256-
return res.toInt() != 0;
256+
return res.toBool();
257257
}
258258

259259
bool QgsRuleBasedRenderer::Rule::isScaleOK( double scale ) const

0 commit comments

Comments
 (0)
Please sign in to comment.