Skip to content
Permalink
Browse files

Fix crash if saving raster with low resolution

  • Loading branch information
mhugent committed Oct 23, 2013
1 parent aa256b8 commit ae39f344c526a42cfd4ba4ec87d71f8c7669c1ae
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/raster/qgsrasterfilewriter.cpp
@@ -495,9 +495,8 @@ QgsRasterFileWriter::WriterError QgsRasterFileWriter::writeImageRaster( QgsRaste
QgsRasterBlock *inputBlock = 0;
while ( iter->readNextRasterPart( 1, iterCols, iterRows, &inputBlock, iterLeft, iterTop ) )
{
if ( iterCols <= 5 || iterRows <= 5 ) //some wms servers don't like small values
if ( !inputBlock )
{
delete &inputBlock;
continue;
}

0 comments on commit ae39f34

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