Skip to content

Commit

Permalink
Fix missing default unit types for SVG fills (fix #7699)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 4, 2014
1 parent 03e10ea commit 639d4c4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/core/symbology-ng/qgsfillsymbollayerv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 639d4c4

Please sign in to comment.