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 b95b954 commit f0218316f650ef8667cb417171e1e322d16f5a66
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 f021831

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