[QGIS Commit] r12810 - trunk/qgis/src/core/symbology-ng

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Jan 21 10:13:58 EST 2010


Author: wonder
Date: 2010-01-21 10:13:56 -0500 (Thu, 21 Jan 2010)
New Revision: 12810

Modified:
   trunk/qgis/src/core/symbology-ng/qgsfillsymbollayerv2.cpp
Log:
Start with transparent background with svg fill.


Modified: trunk/qgis/src/core/symbology-ng/qgsfillsymbollayerv2.cpp
===================================================================
--- trunk/qgis/src/core/symbology-ng/qgsfillsymbollayerv2.cpp	2010-01-21 09:23:15 UTC (rev 12809)
+++ trunk/qgis/src/core/symbology-ng/qgsfillsymbollayerv2.cpp	2010-01-21 15:13:56 UTC (rev 12810)
@@ -166,7 +166,7 @@
   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 );



More information about the QGIS-commit mailing list