mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
QVariant supports boolean
This commit is contained in:
parent
da0e4741c1
commit
34a792ffdc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user