Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Remove unncessary condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
zmiao committed Mar 25, 2020
1 parent dda78bb commit 461ae78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/style/expression/within.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ MultiPolygon<int64_t> getTilePolygons(const Feature::geometry_type& polygonGeoSe
}

void updatePoint(Point<int64_t>& p, WithinBBox& bbox, const WithinBBox& polyBBox, const int64_t worldSize) {
if (p.x <= polyBBox[0] || p.x >= polyBBox[2]) {
if (p.x < polyBBox[0] || p.x > polyBBox[2]) {
const auto getShift = [](Point<int64_t>& point, const int64_t polygonSide, const int64_t size) -> int64_t {
if ((point.x - polygonSide > size / 2) > 0) {
return -size;
Expand Down

0 comments on commit 461ae78

Please sign in to comment.