Skip to content

Commit 5657546

Browse files
author
timlinux
committedApr 15, 2011
Fix for #3739 - wms transparency not working when set from layer properties
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15703 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d5febb5 commit 5657546

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3648,7 +3648,8 @@ void QgsRasterLayer::drawSingleBandColorData( QPainter * theQPainter, QgsRasterV
36483648
for ( int i = 0; i < theRasterViewPort->drawableAreaXDim; ++i )
36493649
{
36503650
QRgb c( *p++ );
3651-
imageScanLine[ i ] = qRgba( qRed( c ), qGreen( c ), qBlue( c ), mTransparencyLevel );
3651+
3652+
imageScanLine[ i ] = qRgba( qRed( c ), qGreen( c ), qBlue( c ), qAlpha( c ) * mTransparencyLevel / 255 );
36523653
}
36533654
}
36543655
}

0 commit comments

Comments
 (0)
Please sign in to comment.