mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
4a32a938f6
commit
b84cc65f2d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user