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 14, 2019
1 parent 1f56ef4 commit 6f76857
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/symbology/qgsfillsymbollayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1724,11 +1724,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 6f76857

Please sign in to comment.