Skip to content
Permalink
Browse files

QVariant supports boolean

  • Loading branch information
m-kuhn committed Mar 10, 2019
1 parent da0e474 commit 34a792ffdcf196c8fea034ac980d4d69988d4bf1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsrulebasedlabeling.cpp
@@ -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

0 comments on commit 34a792f

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