Skip to content

Commit a5a7c1c

Browse files
committedMay 6, 2013
Small fixes to heatmap plugin
1 parent 83dc4cb commit a5a7c1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/plugins/heatmap/heatmap.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,9 @@ void Heatmap::run()
203203
int totalFeatures = inputLayer->featureCount();
204204
int counter = 0;
205205

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

209210
QgsFeature myFeature;
210211

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

0 commit comments

Comments
 (0)
Please sign in to comment.