QVariant supports boolean

This commit is contained in:
Matthias Kuhn 2019-03-10 16:18:41 +01:00
parent da0e4741c1
commit 34a792ffdc
No known key found for this signature in database
GPG Key ID: 7A7F1A1C90C3E6A7

View File

@ -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