Skip to content
Permalink
Browse files
Fix for the delimited text provider excluding features that are exact…
…ly on the boundary (could of sworn that I'd fixed this problem a while ago, but there's no record of it in svn). Partial fix for ticket #322.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5905 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 1, 2006
1 parent f663812 commit 72e431d
Showing 1 changed file with 4 additions and 4 deletions.
@@ -710,10 +710,10 @@ bool QgsDelimitedTextProvider::boundsCheck(double x, double y)
{
bool inBounds(true);
if (mSelectionRectangle)
inBounds = (((x < mSelectionRectangle->xMax()) &&
(x > mSelectionRectangle->xMin())) &&
((y < mSelectionRectangle->yMax()) &&
(y > mSelectionRectangle->yMin())));
inBounds = (((x <= mSelectionRectangle->xMax()) &&
(x >= mSelectionRectangle->xMin())) &&
((y <= mSelectionRectangle->yMax()) &&
(y >= mSelectionRectangle->yMin())));
// QString hit = inBounds?"true":"false";

// std::cerr << "Checking if " << x << ", " << y << " is in " <<

0 comments on commit 72e431d

Please sign in to comment.