Skip to content
Permalink
Browse files

Fix slight offset in heatmap renderer

  • Loading branch information
nyalldawson committed Nov 25, 2014
1 parent 554d55d commit 9cf3e7f002fec94c8c797899c3e60bfde8f5bf43
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/symbology-ng/qgsheatmaprenderer.cpp
@@ -141,8 +141,8 @@ bool QgsHeatmapRenderer::renderFeature( QgsFeature& feature, QgsRenderContext& c
for ( QgsMultiPoint::const_iterator pointIt = multiPoint.constBegin(); pointIt != multiPoint.constEnd(); ++pointIt )
{
QgsPoint pixel = context.mapToPixel().transform( *pointIt );
int pointX = pixel.x() / mRenderQuality + 1;
int pointY = pixel.y() / mRenderQuality + 1;
int pointX = pixel.x() / mRenderQuality;
int pointY = pixel.y() / mRenderQuality;
for ( int x = qMax( pointX - mRadiusPixels, 0 ); x < qMin( pointX + mRadiusPixels, width ); ++x )
{
for ( int y = qMax( pointY - mRadiusPixels, 0 ); y < qMin( pointY + mRadiusPixels, height ); ++y )

0 comments on commit 9cf3e7f

Please sign in to comment.
You can’t perform that action at this time.