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 1f56ef4 commit 6f76857e1493265f26b6144b575cfd392066372f
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/symbology/qgsfillsymbollayer.cpp
@@ -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 )

0 comments on commit 6f76857

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