mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[symbology] Fix potential crash with data defined symbols
This commit is contained in:
parent
46b9029e0f
commit
65cd9fcd78
@ -117,7 +117,9 @@ QVariant QgsSymbolLayerV2::evaluateDataDefinedProperty( const QString &property,
|
||||
return QVariant();
|
||||
|
||||
if ( dd->useExpression() )
|
||||
return dd->expression()->evaluate( feature );
|
||||
{
|
||||
return dd->expression() ? dd->expression()->evaluate( feature ) : QVariant();
|
||||
}
|
||||
else if ( feature && !dd->field().isEmpty() && !mFields.isEmpty() )
|
||||
{
|
||||
int attributeIndex = mFields.fieldNameIndex( dd->field() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user