This commit is contained in:
Juergen E. Fischer 2013-04-20 20:58:20 +02:00
parent cfa3f57515
commit 261dfbf562

View File

@ -494,8 +494,8 @@ bool QgsRasterBlock::setIsNoDataExcept( const QRect & theExceptRect )
QByteArray noDataByteArray = valueBytes( mDataType, mNoDataValue );
char *nodata = noDataByteArray.data();
char *nodataRow = new char[mWidth]; // full row of no data
for ( int c = 0; c < mWidth; c ++ )
char *nodataRow = new char[mWidth*dataTypeSize]; // full row of no data
for ( int c = 0; c < mWidth; c++ )
{
memcpy( nodataRow + c*dataTypeSize, nodata, dataTypeSize );
}