Skip to content
Permalink
Browse files

Patch for bug #604 contributed by Peter Ersts

git-svn-id: http://svn.osgeo.org/qgis/trunk@7332 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Nov 6, 2007
1 parent 0c4a8fa commit 958553aa4be4ccdc0ef241cb59e826bfb154d63a
Showing with 13 additions and 3 deletions.
  1. +13 −3 src/core/raster/qgsrasterlayer.cpp
@@ -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:

0 comments on commit 958553a

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