Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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@5905 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 1, 2006
1 parent b3fbbd9 commit eab3164
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
Expand Up @@ -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 " <<
Expand Down

0 comments on commit eab3164

Please sign in to comment.