Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash if saving raster with low resolution
  • Loading branch information
mhugent committed Oct 23, 2013
1 parent aa256b8 commit ae39f34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/raster/qgsrasterfilewriter.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit ae39f34

Please sign in to comment.