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@15703 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 15, 2011
1 parent a4659dd commit 880088c1ea6aa91bf12d12d79ef4de858caf21c5
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 880088c

Please sign in to comment.