Skip to content

Commit fe5ccb7

Browse files
author
jef
committedJan 21, 2010
fix windows build error
git-svn-id: http://svn.osgeo.org/qgis/trunk@12812 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 95535cd commit fe5ccb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5605,7 +5605,7 @@ bool QgsRasterImageBuffer::nextScanLine( QRgb** imageScanLine, void** rasterScan
56055605
}
56065606
GDALDataType type = GDALGetRasterDataType( mRasterBand );
56075607
int size = GDALGetDataTypeSize( type ) / 8;
5608-
*rasterScanLine = mCurrentGDALData + mCurrentPartImageRow * mViewPort->drawableAreaXDim * size;
5608+
*rasterScanLine = ( unsigned char * )mCurrentGDALData + mCurrentPartImageRow * mViewPort->drawableAreaXDim * size;
56095609

56105610
++mCurrentPartImageRow;
56115611
++mCurrentRow;

‎src/core/raster/qgsrasterlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ class QPainter;*/
895895
class CORE_EXPORT QgsRasterImageBuffer
896896
{
897897
public:
898-
QgsRasterImageBuffer( GDALRasterBandH rasterBand, QPainter* p, \
898+
QgsRasterImageBuffer( GDALRasterBandH rasterBand, QPainter* p,
899899
QgsRasterViewPort* viewPort, const QgsMapToPixel* mapToPixel, double* mGeoTransform );
900900
~QgsRasterImageBuffer();
901901
void reset( int maxPixelsInVirtualMemory = 5000000 );

0 commit comments

Comments
 (0)
Please sign in to comment.