Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Optimize simple line drawing when without data-defined properties
20% speed improvement when drawing 1m linestrings (4points each) from memory layer
  • Loading branch information
wonder-sk committed Oct 3, 2014
1 parent fbbea90 commit d8ce7da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/symbology-ng/qgslinesymbollayerv2.cpp
Expand Up @@ -452,6 +452,9 @@ QgsSymbolLayerV2* QgsSimpleLineSymbolLayerV2::createFromSld( QDomElement &elemen

void QgsSimpleLineSymbolLayerV2::applyDataDefinedSymbology( QgsSymbolV2RenderContext& context, QPen& pen, QPen& selPen, double& offset )
{
if ( mDataDefinedProperties.isEmpty() )
return; // shortcut

//data defined properties
double scaledWidth = 0;
QgsExpression* strokeWidthExpression = expression( "width" );
Expand Down

0 comments on commit d8ce7da

Please sign in to comment.