Skip to content
Permalink
Browse files

Small fixes to heatmap plugin

  • Loading branch information
nyalldawson committed May 6, 2013
1 parent 83dc4cb commit a5a7c1c3ec9a67ccd424a9526d0f5cb1faae4b16
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/plugins/heatmap/heatmap.cpp
@@ -203,8 +203,9 @@ void Heatmap::run()
int totalFeatures = inputLayer->featureCount();
int counter = 0;

QProgressDialog p( "Creating Heatmap ... ", "Abort", 0, totalFeatures );
QProgressDialog p( tr( "Creating heatmap" ), tr( "Abort" ), 0, totalFeatures, mQGisIface->mainWindow() );
p.setWindowModality( Qt::WindowModal );
p.show();

QgsFeature myFeature;

@@ -224,7 +225,8 @@ void Heatmap::run()
QgsPoint myPoint;
myPoint = myPointGeometry->asPoint();
// avoiding any empty points or out of extent points
if (( myPoint.x() < myBBox.xMinimum() ) || ( myPoint.y() < myBBox.yMinimum() ) )
if (( myPoint.x() < myBBox.xMinimum() ) || ( myPoint.y() < myBBox.yMinimum() )
|| ( myPoint.x() > myBBox.xMaximum() ) || ( myPoint.y() > myBBox.yMaximum() ) )
{
continue;
}

0 comments on commit a5a7c1c

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