Skip to content

Commit

Permalink
Small fixes to heatmap plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 6, 2013
1 parent 83dc4cb commit a5a7c1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/heatmap/heatmap.cpp
Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down

0 comments on commit a5a7c1c

Please sign in to comment.