Skip to content
Permalink
Browse files

fix #7461

  • Loading branch information
jef-n committed Apr 20, 2013
1 parent cfa3f57 commit 261dfbf5624e5f27628365ddb613d4a2aaf2b210
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/raster/qgsrasterblock.cpp
@@ -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 );
}

0 comments on commit 261dfbf

Please sign in to comment.
You can’t perform that action at this time.