Skip to content
Permalink
Browse files

Skip some work if no data-defined properties are applied

8% speedup with 1m polygons in memory layer
  • Loading branch information
wonder-sk committed Oct 3, 2014
1 parent d8ce7da commit 3ce7be5d3971720b9c8582a506912bf1813cc730
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
@@ -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 )
{

0 comments on commit 3ce7be5

Please sign in to comment.
You can’t perform that action at this time.