mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Skip some work if no data-defined properties are applied
8% speedup with 1m polygons in memory layer
This commit is contained in:
parent
d8ce7dac76
commit
3ce7be5d39
@ -77,6 +77,9 @@ QgsMapUnitScale QgsSimpleFillSymbolLayerV2::mapUnitScale() const
|
||||
|
||||
void QgsSimpleFillSymbolLayerV2::applyDataDefinedSymbology( QgsSymbolV2RenderContext& context, QBrush& brush, QPen& pen, QPen& selPen )
|
||||
{
|
||||
if ( mDataDefinedProperties.isEmpty() )
|
||||
return; // shortcut
|
||||
|
||||
QgsExpression* colorExpression = expression( "color" );
|
||||
if ( colorExpression )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user