mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix #7461
This commit is contained in:
parent
cfa3f57515
commit
261dfbf562
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user