Navigation Menu

Skip to content

Commit

Permalink
Patch for bug #604 contributed by Peter Ersts
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7332 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Nov 6, 2007
1 parent 435b944 commit 106cdac
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -1331,10 +1331,20 @@ void QgsRasterLayer::draw (QPainter * theQPainter,
break;
}
//a layer containing 2 or more bands, mapped to the three RGBcolors.
//In the case of a multiband with only two bands, one band will have to be mapped to more than one color
//In the case of a multiband with only two bands,
//one band will have to be mapped to more than one color
case MULTI_BAND_COLOR:
drawMultiBandColor(theQPainter, theRasterViewPort,
theQgsMapToPixel);
if(redBandNameQString == tr("Not Set") ||
greenBandNameQString == tr("Not Set") ||
blueBandNameQString == tr("Not Set"))
{
break;
}
else
{
drawMultiBandColor(theQPainter, theRasterViewPort,
theQgsMapToPixel);
}
break;

default:
Expand Down

0 comments on commit 106cdac

Please sign in to comment.