Skip to content
Permalink
Browse files
Fix crash if raster width is below 1 pixels (ticket #2846)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13889 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 5, 2010
1 parent 1efc10d commit 00559279c04584fff0bea78727bbf76e4392e676
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/raster/qgsrasterlayer.cpp
@@ -5701,7 +5701,7 @@ bool QgsRasterImageBuffer::createNextPartImage()
ySize = fabs((( rasterYSize ) / mMapToPixel->mapUnitsPerPixel() * mGeoTransform[5] ) ) + 0.5;
}
}
if ( ySize == 0 )
if ( ySize < 1 || xSize < 1 )
{
return false;
}

0 comments on commit 0055927

Please sign in to comment.