Skip to content

Commit f021831

Browse files
committedMay 14, 2019
Avoid unnecessary calculations in SVG fill symbol cloning
Minor speed boost
1 parent b95b954 commit f021831

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/core/symbology/qgsfillsymbollayer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,11 +1724,10 @@ QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QString &svgFilePath, double
17241724
: QgsImageFillSymbolLayer()
17251725
, mPatternWidth( width )
17261726
{
1727-
setSvgFilePath( svgFilePath );
17281727
mStrokeWidth = 0.3;
17291728
mAngle = angle;
17301729
mColor = QColor( 255, 255, 255 );
1731-
setDefaultSvgParams();
1730+
setSvgFilePath( svgFilePath );
17321731
}
17331732

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

0 commit comments

Comments
 (0)
Please sign in to comment.