Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 373190d

Browse files
committedMay 14, 2019
Avoid unnecessary calculations in SVG fill symbol cloning
Minor speed boost
1 parent 35def84 commit 373190d

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
@@ -1722,11 +1722,10 @@ QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QString &svgFilePath, double
17221722
: QgsImageFillSymbolLayer()
17231723
, mPatternWidth( width )
17241724
{
1725-
setSvgFilePath( svgFilePath );
17261725
mStrokeWidth = 0.3;
17271726
mAngle = angle;
17281727
mColor = QColor( 255, 255, 255 );
1729-
setDefaultSvgParams();
1728+
setSvgFilePath( svgFilePath );
17301729
}
17311730

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

0 commit comments

Comments
 (0)
Please sign in to comment.