Skip to content

Commit

Permalink
Fix off-by-one in average resampler (may occure in rare cases because…
Browse files Browse the repository at this point in the history
… of rounding)
  • Loading branch information
mhugent committed Jul 18, 2012
1 parent 617d73f commit 3c42d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsbilinearrasterresampler.cpp
Expand Up @@ -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.