Skip to content
Permalink
Browse files

invert color fix

  • Loading branch information
blazek committed Oct 24, 2012
1 parent 3284fcc commit 9a300d85da0ad680a8cb1032c2391d34b50a6cdf
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/core/raster/qgssinglebandpseudocolorrenderer.cpp
@@ -165,6 +165,14 @@ QgsRasterBlock* QgsSingleBandPseudoColorRenderer::block( int bandNo, QgsRectangl
continue;
}

if ( mInvertColor )
{
// 1.8 was flipping blue and red
red = 255 - red;
green = 255 - green;
blue = 255 - blue;
}

if ( !hasTransparency )
{
outputBlock->setColor( i, qRgba( red, green, blue, 255 ) );

0 comments on commit 9a300d8

Please sign in to comment.
You can’t perform that action at this time.