Skip to content

Commit 7f9adc9

Browse files
author
g_j_m
committed
Fix for ticket #263 (not all gpx point were imported).
git-svn-id: http://svn.osgeo.org/qgis/trunk@5798 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 29b7cb1 commit 7f9adc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/providers/gpx/qgsgpxprovider.cpp

+4-4
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)