Skip to content

Commit

Permalink
Minor bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsy committed Feb 23, 2015
1 parent 5f6d1a7 commit 9c74844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npr/PoissonDisk_detail.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool inNeighborhoodForList(const Grid<cv::Point2f>& grid, cv::Point2f point, dou
int yy = static_cast<int>(gridCoord.y + dy);
if (grid.hasCell(yy, xx)) {
const std::vector<cv::Point2f>& v = grid(yy, xx);
if (v.empty()) {
if (!v.empty()) {
for (int i = 0; i < v.size(); i++) {
double deltaX = point.x - v[i].x;
double deltaY = point.y - v[i].y;
Expand Down

0 comments on commit 9c74844

Please sign in to comment.