Fix for ticket #263 (not all gpx point were imported).

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5798 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2006-09-10 01:23:13 +00:00
parent 4a32a938f6
commit b84cc65f2d

View File

@ -836,10 +836,10 @@ QString QgsGPXProvider::getDefaultValue(const QString& attr, QgsFeature* f) {
*/
bool QgsGPXProvider::boundsCheck(double x, double y)
{
bool inBounds = (((x < mSelectionRectangle->xMax()) &&
(x > mSelectionRectangle->xMin())) &&
((y < mSelectionRectangle->yMax()) &&
(y > mSelectionRectangle->yMin())));
bool inBounds = (((x <= mSelectionRectangle->xMax()) &&
(x >= mSelectionRectangle->xMin())) &&
((y <= mSelectionRectangle->yMax()) &&
(y >= mSelectionRectangle->yMin())));
QString hit = inBounds?"true":"false";
return inBounds;
}