Skip to content

Commit

Permalink
Avoid unnecessary calculations in SVG fill symbol cloning
Browse files Browse the repository at this point in the history
Minor speed boost
  • Loading branch information
nyalldawson committed May 19, 2019
1 parent eedc582 commit e997737
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/symbology/qgsfillsymbollayer.cpp
Expand Up @@ -1722,11 +1722,10 @@ QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QString &svgFilePath, double
: QgsImageFillSymbolLayer()
, mPatternWidth( width )
{
setSvgFilePath( svgFilePath );
mStrokeWidth = 0.3;
mAngle = angle;
mColor = QColor( 255, 255, 255 );
setDefaultSvgParams();
setSvgFilePath( svgFilePath );
}

QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QByteArray &svgData, double width, double angle )
Expand Down

0 comments on commit e997737

Please sign in to comment.