Skip to content

Commit 91fb7ed

Browse files
author
wonder
committed
Start with transparent background with svg fill.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12810 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6d4e233 commit 91fb7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/symbology-ng/qgsfillsymbollayerv2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void QgsSVGFillSymbolLayer::startRender( QgsSymbolV2RenderContext& context )
166166
int pixelHeight = pixelWidth / mSvgViewBox.width() * mSvgViewBox.height();
167167

168168
QImage textureImage( pixelWidth, pixelHeight, QImage::Format_ARGB32_Premultiplied );
169-
textureImage.fill( QColor( 255, 255, 255, 0 ).rgba() );
169+
textureImage.fill( 0 ); // transparent background
170170

171171
//rasterise byte array to image
172172
QPainter p( &textureImage );

0 commit comments

Comments
 (0)