Skip to content

Commit

Permalink
Start with transparent background with svg fill.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12810 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jan 21, 2010
1 parent 2ddf77a commit d059f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsfillsymbollayerv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void QgsSVGFillSymbolLayer::startRender( QgsSymbolV2RenderContext& context )
int pixelHeight = pixelWidth / mSvgViewBox.width() * mSvgViewBox.height();

QImage textureImage( pixelWidth, pixelHeight, QImage::Format_ARGB32_Premultiplied );
textureImage.fill( QColor( 255, 255, 255, 0 ).rgba() );
textureImage.fill( 0 ); // transparent background

//rasterise byte array to image
QPainter p( &textureImage );
Expand Down

0 comments on commit d059f32

Please sign in to comment.