Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 5657546
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -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 );
}
}
}
Expand Down

0 comments on commit 5657546

Please sign in to comment.