Skip to content

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/providers/gpx/qgsgpxprovider.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,10 +836,10 @@ QString QgsGPXProvider::getDefaultValue(const QString& attr, QgsFeature* f) {
836836
*/
837837
bool QgsGPXProvider::boundsCheck(double x, double y)
838838
{
839-
bool inBounds = (((x < mSelectionRectangle->xMax()) &&
840-
(x > mSelectionRectangle->xMin())) &&
841-
((y < mSelectionRectangle->yMax()) &&
842-
(y > mSelectionRectangle->yMin())));
839+
bool inBounds = (((x <= mSelectionRectangle->xMax()) &&
840+
(x >= mSelectionRectangle->xMin())) &&
841+
((y <= mSelectionRectangle->yMax()) &&
842+
(y >= mSelectionRectangle->yMin())));
843843
QString hit = inBounds?"true":"false";
844844
return inBounds;
845845
}

0 commit comments

Comments
 (0)
Please sign in to comment.