Skip to content

Commit

Permalink
Bugfix pointInPolygon
Browse files Browse the repository at this point in the history
Without "$this" it throws an "Call to undefined function pointOnVertex()" Fatal error
  • Loading branch information
tillz committed May 24, 2013
1 parent ba7305a commit 95152f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geometry/Polygon.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function pointInPolygon($point, $pointOnBoundary = true, $pointOnVertex =
$vertices = $this->getPoints();

// Check if the point sits exactly on a vertex
if (pointOnVertex($point, $vertices)) {
if ($this->pointOnVertex($point, $vertices)) {
return $pointOnVertex ? TRUE : FALSE;
}

Expand Down

0 comments on commit 95152f4

Please sign in to comment.