Small fixes to heatmap plugin

This commit is contained in:
nyalldawson 2013-05-06 14:00:59 +10:00
parent 83dc4cb914
commit a5a7c1c3ec

View File

@ -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;
}