Bug fix for segfault in paletted pseudocolor images. Still really slow - will look at performance in this srasing style later.

git-svn-id: http://svn.osgeo.org/qgis/trunk@663 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2004-02-01 02:03:16 +00:00
parent cd1c0e6b2f
commit b04f750d66

View File

@ -414,7 +414,8 @@ void QgsRasterLayer::draw(QPainter * theQPainter, QgsRect * theViewExtent, QgsCo
else
{
drawPalettedSingleBandPseudoColor(theQPainter, myRasterViewPort, getRasterBandNumber(grayBandNameQString), grayBandNameQString);
int myBandNoInt=1;
drawPalettedSingleBandPseudoColor(theQPainter, myRasterViewPort, myBandNoInt, grayBandNameQString);
break;
}
//a "Palette" image where the bands contains 24bit color info and 8 bits is pulled out per color