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 with 1 addition and 1 deletion.
  1. +1 −1 src/core/raster/qgsbilinearrasterresampler.cpp
@@ -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.
You can’t perform that action at this time.