Skip to content

Commit ae39f34

Browse files
committedOct 23, 2013
Fix crash if saving raster with low resolution
1 parent aa256b8 commit ae39f34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/core/raster/qgsrasterfilewriter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,8 @@ QgsRasterFileWriter::WriterError QgsRasterFileWriter::writeImageRaster( QgsRaste
495495
QgsRasterBlock *inputBlock = 0;
496496
while ( iter->readNextRasterPart( 1, iterCols, iterRows, &inputBlock, iterLeft, iterTop ) )
497497
{
498-
if ( iterCols <= 5 || iterRows <= 5 ) //some wms servers don't like small values
498+
if ( !inputBlock )
499499
{
500-
delete &inputBlock;
501500
continue;
502501
}
503502

0 commit comments

Comments
 (0)
Please sign in to comment.