Skip to content

Commit

Permalink
Skip some work if no data-defined properties are applied
Browse files Browse the repository at this point in the history
8% speedup with 1m polygons in memory layer
  • Loading branch information
wonder-sk committed Oct 3, 2014
1 parent d8ce7da commit 3ce7be5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/symbology-ng/qgsfillsymbollayerv2.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 3ce7be5

Please sign in to comment.