Skip to content
Permalink
Browse files
Fix off-by-one in average resampler (may occure in rare cases because…
… of rounding)
  • Loading branch information
mhugent committed Jul 18, 2012
1 parent 617d73f commit 3c42d655e8c0c90636294a3806624799c6051ca6
Showing 1 changed file with 1 addition and 1 deletion.
@@ -29,5 +29,5 @@ QgsBilinearRasterResampler::~QgsBilinearRasterResampler()

void QgsBilinearRasterResampler::resample( const QImage& srcImage, QImage& dstImage )
{
dstImage = srcImage.scaled( dstImage.width(), dstImage.height(), Qt::KeepAspectRatio, Qt::SmoothTransformation );
dstImage = srcImage.scaled( dstImage.width(), dstImage.height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation );
}

0 comments on commit 3c42d65

Please sign in to comment.