Skip to content
Permalink
Browse files

Fix missing default unit types for SVG fills (fix #7699)

  • Loading branch information
nyalldawson committed May 4, 2014
1 parent 03e10ea commit 639d4c419f54f301ef083fb3167d29aa18d68b6e
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
@@ -1463,8 +1463,10 @@ Qt::PenStyle QgsImageFillSymbolLayer::dxfPenStyle() const

//QgsSVGFillSymbolLayer

QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QString& svgFilePath, double width, double angle ): QgsImageFillSymbolLayer(), mPatternWidth( width ),
mPatternWidthUnit( QgsSymbolV2::MM ), mSvgOutlineWidthUnit( QgsSymbolV2::MM )
QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QString& svgFilePath, double width, double angle ): QgsImageFillSymbolLayer(),
mPatternWidth( width ),
mPatternWidthUnit( QgsSymbolV2::MM ),
mSvgOutlineWidthUnit( QgsSymbolV2::MM )
{
setSvgFilePath( svgFilePath );
mOutlineWidth = 0.3;
@@ -1473,8 +1475,11 @@ QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QString& svgFilePath, double
mSvgPattern = 0;
}

QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QByteArray& svgData, double width, double angle ): QgsImageFillSymbolLayer(), mPatternWidth( width ),
mSvgData( svgData )
QgsSVGFillSymbolLayer::QgsSVGFillSymbolLayer( const QByteArray& svgData, double width, double angle ): QgsImageFillSymbolLayer(),
mPatternWidth( width ),
mSvgData( svgData ),
mPatternWidthUnit( QgsSymbolV2::MM ),
mSvgOutlineWidthUnit( QgsSymbolV2::MM )
{
storeViewBox();
mOutlineWidth = 0.3;

0 comments on commit 639d4c4

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