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@5905 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Oct 1, 2006
1 parent b3fbbd9 commit eab316480ed2dc07596b93f9ceec38660fb2c436
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
@@ -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 eab3164

Please sign in to comment.