From b04f750d6656431a76c6bb7d3b01bb723f138b41 Mon Sep 17 00:00:00 2001 From: timlinux Date: Sun, 1 Feb 2004 02:03:16 +0000 Subject: [PATCH] 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 --- qgis/src/qgsrasterlayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qgis/src/qgsrasterlayer.cpp b/qgis/src/qgsrasterlayer.cpp index 30b3d10773b..b7960a4e06e 100644 --- a/qgis/src/qgsrasterlayer.cpp +++ b/qgis/src/qgsrasterlayer.cpp @@ -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