Skip to content
Permalink
Browse files

Avoid unnecessary calculations in SVG fill symbol cloning

Minor speed boost
  • Loading branch information
nyalldawson committed May 14, 2019
1 parent 35def84 commit 373190d59d9b7cc059bf5537e6734eecccb15283
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/symbology/qgsfillsymbollayer.cpp
@@ -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 )

0 comments on commit 373190d

Please sign in to comment.
You can’t perform that action at this time.