Skip to content

Commit

Permalink
fix #7461
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 20, 2013
1 parent cfa3f57 commit 261dfbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/raster/qgsrasterblock.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 261dfbf

Please sign in to comment.