Fix typo in geo.cpp (#412)

This commit is contained in:
Tadej Novak
2022-08-22 09:11:24 +02:00
committed by GitHub
parent a2056752dc
commit c72c468ff5

View File

@@ -54,7 +54,7 @@ bool LatLngBounds::contains(const LatLngBounds& area, LatLng::WrapMode wrap /*=
} else if (wrap == LatLng::Wrapped) {
LatLngBounds wrapped(sw.wrapped(), ne.wrapped());
LatLngBounds other(area.sw.wrapped(), area.ne.wrapped());
if (crossesAntimeridian() & !area.crossesAntimeridian()) {
if (crossesAntimeridian() && !area.crossesAntimeridian()) {
return (other.east() <= util::LONGITUDE_MAX && other.west() >= wrapped.west()) ||
(other.east() <= wrapped.east() && other.west() >= -util::LONGITUDE_MAX);
} else {