Skip to content
Permalink
Browse files
Fix for #3739 - wms transparency not working when set from layer prop…
…erties

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15703 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 15, 2011
1 parent d5febb5 commit 5657546e6594be2c8be4c9df2ab1a62e6914e9ab
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/raster/qgsrasterlayer.cpp
@@ -3648,7 +3648,8 @@ void QgsRasterLayer::drawSingleBandColorData( QPainter * theQPainter, QgsRasterV
for ( int i = 0; i < theRasterViewPort->drawableAreaXDim; ++i )
{
QRgb c( *p++ );
imageScanLine[ i ] = qRgba( qRed( c ), qGreen( c ), qBlue( c ), mTransparencyLevel );

imageScanLine[ i ] = qRgba( qRed( c ), qGreen( c ), qBlue( c ), qAlpha( c ) * mTransparencyLevel / 255 );
}
}
}

0 comments on commit 5657546

Please sign in to comment.